Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebParts / WebDisplayNameAttribute.cs / 1 / WebDisplayNameAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Security.Permissions; [AttributeUsage(AttributeTargets.Property)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class WebDisplayNameAttribute : Attribute { public static readonly WebDisplayNameAttribute Default = new WebDisplayNameAttribute(); private string _displayName; public WebDisplayNameAttribute() : this(String.Empty) { } public WebDisplayNameAttribute(string displayName) { _displayName = displayName; } public virtual string DisplayName { get { return DisplayNameValue; } } protected string DisplayNameValue { get { return _displayName; } set { _displayName = value; } } public override bool Equals(object obj) { if (obj == this) { return true; } WebDisplayNameAttribute other = obj as WebDisplayNameAttribute; return (other != null) && other.DisplayName == DisplayName; } public override int GetHashCode() { return DisplayName.GetHashCode(); } ///public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlArrayAttribute.cs
- SchemaElementLookUpTable.cs
- ImageCodecInfo.cs
- WebBrowsableAttribute.cs
- XamlPathDataSerializer.cs
- XsdBuilder.cs
- WriterOutput.cs
- MultipartIdentifier.cs
- QualificationDataItem.cs
- DataGridViewRowPrePaintEventArgs.cs
- CategoryList.cs
- Grant.cs
- Vector3D.cs
- SqlCrossApplyToCrossJoin.cs
- ModelUIElement3D.cs
- UpdateCommandGenerator.cs
- PageWrapper.cs
- ToolStripItemTextRenderEventArgs.cs
- SmiEventSink.cs
- UIServiceHelper.cs
- TransformerTypeCollection.cs
- PropertyItemInternal.cs
- VSWCFServiceContractGenerator.cs
- XmlJsonWriter.cs
- TemplateInstanceAttribute.cs
- TextSelectionProcessor.cs
- RuntimeUtils.cs
- HttpModuleCollection.cs
- SiteMapNodeItem.cs
- adornercollection.cs
- NamedElement.cs
- PolicyValidationException.cs
- MD5.cs
- SpeechUI.cs
- RijndaelCryptoServiceProvider.cs
- AuthenticateEventArgs.cs
- Oid.cs
- StringStorage.cs
- XmlQualifiedNameTest.cs
- ContentType.cs
- XmlSortKey.cs
- RichTextBoxConstants.cs
- EdmItemCollection.cs
- SystemColors.cs
- InterleavedZipPartStream.cs
- SourceElementsCollection.cs
- CompilationAssemblyInstallComponent.cs
- TimerEventSubscription.cs
- RewritingProcessor.cs
- WebPartHelpVerb.cs
- ListViewDataItem.cs
- XsltFunctions.cs
- RootBuilder.cs
- XmlBindingWorker.cs
- UnsafeNativeMethods.cs
- WebPartAddingEventArgs.cs
- CreatingCookieEventArgs.cs
- KeyboardEventArgs.cs
- HScrollProperties.cs
- DelegatedStream.cs
- HtmlTextArea.cs
- EntryWrittenEventArgs.cs
- XsltCompileContext.cs
- DispatcherObject.cs
- ObjectViewListener.cs
- WorkflowInstanceRecord.cs
- BackgroundWorker.cs
- TreeNodeCollectionEditorDialog.cs
- PictureBoxDesigner.cs
- HttpCapabilitiesEvaluator.cs
- WindowsTokenRoleProvider.cs
- ParamArrayAttribute.cs
- ResourceFallbackManager.cs
- SimpleWorkerRequest.cs
- EntityWithKeyStrategy.cs
- MbpInfo.cs
- MinMaxParagraphWidth.cs
- __TransparentProxy.cs
- CodeTypeReferenceExpression.cs
- TransformProviderWrapper.cs
- DesignTimeParseData.cs
- ByteBufferPool.cs
- ManifestResourceInfo.cs
- PersonalizableAttribute.cs
- MetadataUtilsSmi.cs
- WebPartsSection.cs
- MetaTableHelper.cs
- ModelVisual3D.cs
- AccessViolationException.cs
- SymmetricAlgorithm.cs
- BaseParagraph.cs
- WebBrowserNavigatingEventHandler.cs
- DrawingAttributesDefaultValueFactory.cs
- TransactionFlowElement.cs
- ClrProviderManifest.cs
- RootNamespaceAttribute.cs
- GestureRecognitionResult.cs
- CrossSiteScriptingValidation.cs
- XmlComplianceUtil.cs
- XmlSchemaSimpleContentRestriction.cs