Code:
/ FX-1434 / FX-1434 / 1.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
- SafeViewOfFileHandle.cs
- RtfControls.cs
- Clipboard.cs
- StylusPointProperties.cs
- XmlWriter.cs
- DocumentPage.cs
- StorageMappingItemLoader.cs
- SafeFileHandle.cs
- DeclarativeConditionsCollection.cs
- DependencyObjectPropertyDescriptor.cs
- Semaphore.cs
- NotifyParentPropertyAttribute.cs
- FormsAuthentication.cs
- UriTemplateDispatchFormatter.cs
- StopStoryboard.cs
- DriveNotFoundException.cs
- WCFServiceClientProxyGenerator.cs
- UIElementHelper.cs
- ClaimTypes.cs
- HtmlInputText.cs
- Compiler.cs
- SQLByte.cs
- ResourceExpressionBuilder.cs
- MessageBox.cs
- TextProviderWrapper.cs
- EntryPointNotFoundException.cs
- SubMenuStyle.cs
- FixedSOMPageElement.cs
- SchemaImporterExtensionsSection.cs
- Point.cs
- FormClosedEvent.cs
- XsdCachingReader.cs
- SqlWriter.cs
- PropertyValue.cs
- UTF32Encoding.cs
- FontDriver.cs
- DefaultSerializationProviderAttribute.cs
- ManipulationLogic.cs
- Shape.cs
- DesignerSerializerAttribute.cs
- OutputCacheSettings.cs
- NoneExcludedImageIndexConverter.cs
- GeometryGroup.cs
- DataPointer.cs
- RegexCaptureCollection.cs
- WorkItem.cs
- dtdvalidator.cs
- CustomWebEventKey.cs
- OrderPreservingSpoolingTask.cs
- NumberFormatInfo.cs
- ProfessionalColors.cs
- DataGridViewRowCancelEventArgs.cs
- RoutingChannelExtension.cs
- DateTime.cs
- ClientConfigurationSystem.cs
- DodSequenceMerge.cs
- ImageClickEventArgs.cs
- RecognizerInfo.cs
- TextUtf8RawTextWriter.cs
- PolicyStatement.cs
- CharacterMetricsDictionary.cs
- StatusBarDrawItemEvent.cs
- BigInt.cs
- XmlSchemaAttributeGroupRef.cs
- Nullable.cs
- DataServiceQueryOfT.cs
- ToolStripDropTargetManager.cs
- typedescriptorpermissionattribute.cs
- MethodBuilder.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ImmutableObjectAttribute.cs
- FlowDecisionLabelFeature.cs
- CompilerGeneratedAttribute.cs
- GroupAggregateExpr.cs
- ConnectionPoint.cs
- NamedPipeDuplicateContext.cs
- DynamicDiscoSearcher.cs
- SchemaLookupTable.cs
- Typography.cs
- UiaCoreApi.cs
- prompt.cs
- PropertyPushdownHelper.cs
- ConversionHelper.cs
- PkcsMisc.cs
- RawStylusSystemGestureInputReport.cs
- PropertyPath.cs
- NestPullup.cs
- SchemaMapping.cs
- NamespaceEmitter.cs
- WebPartDisplayModeCancelEventArgs.cs
- SchemaNamespaceManager.cs
- TrustSection.cs
- UnsafeNativeMethods.cs
- HwndProxyElementProvider.cs
- HostedNamedPipeTransportManager.cs
- BamlCollectionHolder.cs
- Expander.cs
- CalloutQueueItem.cs
- HttpHeaderCollection.cs
- DataBindingExpressionBuilder.cs