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
- RelationshipEndCollection.cs
- SQLByteStorage.cs
- Resources.Designer.cs
- RunInstallerAttribute.cs
- TypeLibraryHelper.cs
- DocumentOrderComparer.cs
- LoginName.cs
- HitTestFilterBehavior.cs
- MemberMaps.cs
- ItemsChangedEventArgs.cs
- ComplusTypeValidator.cs
- GridViewDeleteEventArgs.cs
- SQLCharsStorage.cs
- SortDescriptionCollection.cs
- ImmComposition.cs
- GeneralTransform3DCollection.cs
- IMembershipProvider.cs
- ParamArrayAttribute.cs
- CalendarModeChangedEventArgs.cs
- TimersDescriptionAttribute.cs
- RandomNumberGenerator.cs
- CssTextWriter.cs
- SqlUDTStorage.cs
- EditorBrowsableAttribute.cs
- FilterQuery.cs
- RequestResizeEvent.cs
- XmlILIndex.cs
- ChameleonKey.cs
- LongMinMaxAggregationOperator.cs
- UdpChannelListener.cs
- Animatable.cs
- TreeNodeStyleCollectionEditor.cs
- Base64Encoder.cs
- DrawListViewColumnHeaderEventArgs.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ContextMenu.cs
- RenamedEventArgs.cs
- ImageEditor.cs
- SapiRecoInterop.cs
- KnownBoxes.cs
- SmtpClient.cs
- peersecurityelement.cs
- WsiProfilesElement.cs
- AuthenticationModuleElement.cs
- XPathAncestorIterator.cs
- LogicalTreeHelper.cs
- WindowsSolidBrush.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- Calendar.cs
- TextOutput.cs
- ProviderIncompatibleException.cs
- ObjectDataSourceMethodEventArgs.cs
- CompoundFileStorageReference.cs
- hwndwrapper.cs
- StrongName.cs
- OdbcHandle.cs
- ImmComposition.cs
- HoistedLocals.cs
- ModelItemCollection.cs
- Authorization.cs
- AttributeProviderAttribute.cs
- DataSvcMapFileSerializer.cs
- CollectionViewGroupInternal.cs
- SHA1.cs
- Rfc2898DeriveBytes.cs
- BooleanExpr.cs
- SqlProfileProvider.cs
- ExpressionBuilder.cs
- QuadraticBezierSegment.cs
- UnionCqlBlock.cs
- DmlSqlGenerator.cs
- WorkflowDurableInstance.cs
- ProxyGenerator.cs
- PolyLineSegment.cs
- TryLoadRunnableWorkflowCommand.cs
- CollectionView.cs
- Repeater.cs
- ObjectIDGenerator.cs
- Single.cs
- PointLight.cs
- FontUnit.cs
- ExecutionContext.cs
- ResourceAttributes.cs
- DeobfuscatingStream.cs
- DBNull.cs
- DataBindingList.cs
- CachedTypeface.cs
- XmlIgnoreAttribute.cs
- CompilerParameters.cs
- CreateUserWizardStep.cs
- FileDialogCustomPlaces.cs
- ExtensionWindow.cs
- WpfMemberInvoker.cs
- TerminateWorkflow.cs
- Identity.cs
- DataSourceControlBuilder.cs
- SqlUnionizer.cs
- DelegateSerializationHolder.cs
- NamespaceCollection.cs
- TypeProvider.cs