Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MdImport.cs
- DataContext.cs
- AssociationProvider.cs
- CachingHintValidation.cs
- UnsignedPublishLicense.cs
- QuinticEase.cs
- Base64Encoder.cs
- XmlSchemaAttribute.cs
- EditorZoneBase.cs
- DesignTimeTemplateParser.cs
- ObjectTag.cs
- LicenseException.cs
- MemoryMappedView.cs
- SerialPort.cs
- ButtonRenderer.cs
- BitmapEffectInputData.cs
- XmlAnyAttributeAttribute.cs
- FontStretch.cs
- CryptoHandle.cs
- TagNameToTypeMapper.cs
- BinaryParser.cs
- BStrWrapper.cs
- Version.cs
- BufferedReceiveManager.cs
- PersistChildrenAttribute.cs
- DBCSCodePageEncoding.cs
- CatalogZone.cs
- DataBinder.cs
- BamlTreeUpdater.cs
- BrushValueSerializer.cs
- Exception.cs
- EnumType.cs
- SettingsPropertyCollection.cs
- TableLayoutPanelCellPosition.cs
- XmlReflectionImporter.cs
- TransactedBatchingBehavior.cs
- ListViewAutomationPeer.cs
- StrokeNodeData.cs
- CalloutQueueItem.cs
- _BasicClient.cs
- ConnectionConsumerAttribute.cs
- DataSourceGeneratorException.cs
- NamedPipeHostedTransportConfiguration.cs
- SessionSwitchEventArgs.cs
- LogExtent.cs
- EncryptedPackageFilter.cs
- PostBackOptions.cs
- XmlSchemaSimpleType.cs
- SelectedDatesCollection.cs
- Cell.cs
- SerializationEventsCache.cs
- ConcurrentQueue.cs
- ProviderConnectionPoint.cs
- ListControl.cs
- ControlValuePropertyAttribute.cs
- CodeFieldReferenceExpression.cs
- TransactionTraceIdentifier.cs
- KernelTypeValidation.cs
- ApplicationDirectory.cs
- SimpleWorkerRequest.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- ExecutedRoutedEventArgs.cs
- FreezableDefaultValueFactory.cs
- SaveFileDialog.cs
- DataGridTablesFactory.cs
- EntityProviderFactory.cs
- MailWebEventProvider.cs
- ChtmlCommandAdapter.cs
- WebDisplayNameAttribute.cs
- BindingUtils.cs
- CommandExpr.cs
- Camera.cs
- returneventsaver.cs
- RoleManagerModule.cs
- StylusPointDescription.cs
- TopClause.cs
- PeerInputChannel.cs
- ListItemParagraph.cs
- KeyboardEventArgs.cs
- StandardCommands.cs
- ValidationEventArgs.cs
- Stacktrace.cs
- ObjectSelectorEditor.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- SchemaElementLookUpTable.cs
- ObjectTypeMapping.cs
- ObservableDictionary.cs
- path.cs
- ListControlBuilder.cs
- ValidationSummaryDesigner.cs
- InputGestureCollection.cs
- DataSourceView.cs
- PerformanceCountersElement.cs
- ISO2022Encoding.cs
- SqlException.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- NodeFunctions.cs
- MimeMapping.cs
- ObjectItemAttributeAssemblyLoader.cs
- CodeDOMProvider.cs