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
- ComplexTypeEmitter.cs
- SourceFileBuildProvider.cs
- CookieHandler.cs
- DateTimeOffsetAdapter.cs
- NativeMethods.cs
- CodeIndexerExpression.cs
- ScriptManager.cs
- DependencyObjectType.cs
- FrugalMap.cs
- InternalConfirm.cs
- SpellerError.cs
- DispatcherHookEventArgs.cs
- SocketInformation.cs
- SimpleHandlerFactory.cs
- DocumentGridPage.cs
- GlyphManager.cs
- TargetConverter.cs
- Size3D.cs
- UIElement3D.cs
- QueryHandler.cs
- StringValidator.cs
- AnnotationObservableCollection.cs
- ExtendLockCommand.cs
- TextContainerHelper.cs
- VersionedStreamOwner.cs
- WindowsStreamSecurityUpgradeProvider.cs
- AttachedPropertyMethodSelector.cs
- PreProcessor.cs
- QuotedPrintableStream.cs
- ArrayWithOffset.cs
- RemoteCryptoDecryptRequest.cs
- ProjectedSlot.cs
- ScriptingJsonSerializationSection.cs
- EditorPartDesigner.cs
- CompensatableTransactionScopeActivity.cs
- SoapRpcMethodAttribute.cs
- ProjectionPruner.cs
- WorkflowOwnerAsyncResult.cs
- Filter.cs
- ClientUIRequest.cs
- TextRangeBase.cs
- FileChangesMonitor.cs
- XmlCodeExporter.cs
- SerializationSectionGroup.cs
- HttpHandlerAction.cs
- PageParser.cs
- SqlClientWrapperSmiStream.cs
- ResourceWriter.cs
- SubqueryTrackingVisitor.cs
- ToolStripDropDownItemDesigner.cs
- XmlDataCollection.cs
- WsdlInspector.cs
- RoleGroupCollection.cs
- ButtonColumn.cs
- arclist.cs
- IPipelineRuntime.cs
- DispatcherProcessingDisabled.cs
- safesecurityhelperavalon.cs
- FormsAuthenticationModule.cs
- SchemaTypeEmitter.cs
- VerbConverter.cs
- ApplicationManager.cs
- WinFormsSpinner.cs
- AbstractDataSvcMapFileLoader.cs
- WindowsTab.cs
- HostedHttpContext.cs
- CodeStatement.cs
- ContentControl.cs
- DaylightTime.cs
- EncodingInfo.cs
- ConfigurationSectionGroupCollection.cs
- ReflectionPermission.cs
- DataGridViewDataErrorEventArgs.cs
- GlyphsSerializer.cs
- TypeProvider.cs
- OrderedDictionary.cs
- CurrentTimeZone.cs
- HostingEnvironmentSection.cs
- AnnotationDocumentPaginator.cs
- WindowsSysHeader.cs
- DataGridViewEditingControlShowingEventArgs.cs
- SqlBulkCopyColumnMappingCollection.cs
- WorkerRequest.cs
- TimelineClockCollection.cs
- PrintController.cs
- HtmlTextArea.cs
- DataGridViewCellEventArgs.cs
- SchemaCollectionPreprocessor.cs
- ExpanderAutomationPeer.cs
- SqlProfileProvider.cs
- CachedCompositeFamily.cs
- LoginNameDesigner.cs
- StorageAssociationSetMapping.cs
- MasterPageCodeDomTreeGenerator.cs
- SourceFilter.cs
- StreamWriter.cs
- Nodes.cs
- ConnectionInterfaceCollection.cs
- WsdlExporter.cs
- SafeUserTokenHandle.cs