Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / WebDisplayNameAttribute.cs / 1305376 / WebDisplayNameAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; [AttributeUsage(AttributeTargets.Property)] 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)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MimeReflector.cs
- Parser.cs
- RelatedImageListAttribute.cs
- DataGridViewTextBoxEditingControl.cs
- XhtmlBasicValidatorAdapter.cs
- ComplexTypeEmitter.cs
- InheritanceRules.cs
- ConvertEvent.cs
- CustomCredentialPolicy.cs
- KeyGestureConverter.cs
- CommonObjectSecurity.cs
- ValidationSummary.cs
- ComplexTypeEmitter.cs
- UrlAuthorizationModule.cs
- SafeNativeMethods.cs
- Helper.cs
- ZipIOExtraFieldPaddingElement.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ClientSideQueueItem.cs
- DBCommandBuilder.cs
- PostBackOptions.cs
- PeerApplicationLaunchInfo.cs
- EntityViewGenerationConstants.cs
- X509UI.cs
- GroupBoxRenderer.cs
- NamespaceListProperty.cs
- ScrollItemPatternIdentifiers.cs
- InputMethod.cs
- StandardOleMarshalObject.cs
- arclist.cs
- FilterableAttribute.cs
- RoleServiceManager.cs
- GeneralTransform3DTo2D.cs
- RuleSetCollection.cs
- SqlDependency.cs
- OdbcFactory.cs
- TypeDescriptor.cs
- LocalizabilityAttribute.cs
- CodeTypeDelegate.cs
- QueryOperationResponseOfT.cs
- SqlLiftWhereClauses.cs
- OleDbDataAdapter.cs
- InternalConfigRoot.cs
- XpsSerializationManager.cs
- DemultiplexingClientMessageFormatter.cs
- AnimatedTypeHelpers.cs
- FormsAuthenticationEventArgs.cs
- StringValueSerializer.cs
- ReadingWritingEntityEventArgs.cs
- ConstructorNeedsTagAttribute.cs
- ProgressBarRenderer.cs
- SafeUserTokenHandle.cs
- ToolboxItem.cs
- ErrorFormatter.cs
- OleDbCommandBuilder.cs
- PerfCounters.cs
- ColorBlend.cs
- UserNamePasswordServiceCredential.cs
- WindowsMenu.cs
- SchemaMerger.cs
- StylusPointDescription.cs
- ComplexObject.cs
- ReadOnlyHierarchicalDataSourceView.cs
- DataDocumentXPathNavigator.cs
- StringFreezingAttribute.cs
- _TimerThread.cs
- LineMetrics.cs
- SafeViewOfFileHandle.cs
- InstancePersistenceCommandException.cs
- ThreadTrace.cs
- CroppedBitmap.cs
- TemplateContainer.cs
- ValidatorCollection.cs
- KoreanLunisolarCalendar.cs
- ScriptingSectionGroup.cs
- HotSpot.cs
- DataGridTableCollection.cs
- ControlPersister.cs
- AutoResetEvent.cs
- DataGridViewRowsAddedEventArgs.cs
- BinarySerializer.cs
- ClassValidator.cs
- ComponentResourceKeyConverter.cs
- TransactionCache.cs
- UIElement3D.cs
- DocumentAutomationPeer.cs
- PointConverter.cs
- FixedSOMTableRow.cs
- HttpListenerContext.cs
- BufferedReadStream.cs
- DictionaryContent.cs
- TextRangeEdit.cs
- BaseHashHelper.cs
- ChildChangedEventArgs.cs
- DurationConverter.cs
- AddingNewEventArgs.cs
- TdsParserHelperClasses.cs
- ToolStripDropDownItem.cs
- InterleavedZipPartStream.cs
- DelegatingConfigHost.cs