Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / WebSysDescriptionAttribute.cs / 1305376 / WebSysDescriptionAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web { using System; using System.ComponentModel; ////// DescriptionAttribute marks a property, event, or extender with a /// description. Visual designers can display this description when referencing /// the member. /// [AttributeUsage(AttributeTargets.All)] internal class WebSysDescriptionAttribute : DescriptionAttribute { private bool replaced; ////// internal WebSysDescriptionAttribute(string description) : base(description) { } ///Constructs a new sys description. ////// public override string Description { get { if (!replaced) { replaced = true; DescriptionValue = SR.GetString(base.Description); } return base.Description; } } public override object TypeId { get { return typeof(DescriptionAttribute); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Retrieves the description text. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web { using System; using System.ComponentModel; ////// DescriptionAttribute marks a property, event, or extender with a /// description. Visual designers can display this description when referencing /// the member. /// [AttributeUsage(AttributeTargets.All)] internal class WebSysDescriptionAttribute : DescriptionAttribute { private bool replaced; ////// internal WebSysDescriptionAttribute(string description) : base(description) { } ///Constructs a new sys description. ////// public override string Description { get { if (!replaced) { replaced = true; DescriptionValue = SR.GetString(base.Description); } return base.Description; } } public override object TypeId { get { return typeof(DescriptionAttribute); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Retrieves the description text. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectDataSourceMethodEventArgs.cs
- TypedElement.cs
- ObfuscateAssemblyAttribute.cs
- Utils.cs
- MetadataArtifactLoaderComposite.cs
- VisualStyleRenderer.cs
- RichTextBox.cs
- AnnotationResourceChangedEventArgs.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Sentence.cs
- DbConnectionPoolOptions.cs
- ByteKeyFrameCollection.cs
- OrderedEnumerableRowCollection.cs
- WbemException.cs
- ReadWriteObjectLock.cs
- PackagePartCollection.cs
- Label.cs
- BaseTemplateCodeDomTreeGenerator.cs
- BezierSegment.cs
- Crc32Helper.cs
- SchemaMapping.cs
- Marshal.cs
- StylusDownEventArgs.cs
- ListViewTableRow.cs
- XmlLanguageConverter.cs
- LongMinMaxAggregationOperator.cs
- RootProfilePropertySettingsCollection.cs
- QuarticEase.cs
- WindowAutomationPeer.cs
- DescendentsWalkerBase.cs
- MarshalByRefObject.cs
- Monitor.cs
- TextProviderWrapper.cs
- Base64Decoder.cs
- SoapSchemaMember.cs
- PassportAuthenticationEventArgs.cs
- DataGridViewColumnCollectionDialog.cs
- ClientTarget.cs
- BufferCache.cs
- UserPersonalizationStateInfo.cs
- ExecutionContext.cs
- ControlBindingsCollection.cs
- Freezable.cs
- CollectionBuilder.cs
- SafeRightsManagementQueryHandle.cs
- SqlNodeAnnotations.cs
- PropertyValidationContext.cs
- MultiView.cs
- UTF32Encoding.cs
- QuadraticBezierSegment.cs
- ConstantCheck.cs
- XmlnsCache.cs
- PropertyInformationCollection.cs
- EventRecord.cs
- DragDeltaEventArgs.cs
- StorageAssociationSetMapping.cs
- WindowsGraphics.cs
- ComboBox.cs
- DataServiceResponse.cs
- PnrpPeerResolverBindingElement.cs
- _ProxyChain.cs
- StaticTextPointer.cs
- GrammarBuilderBase.cs
- SHA256.cs
- Utils.cs
- ProfileService.cs
- MemberDomainMap.cs
- ControlCachePolicy.cs
- KeyManager.cs
- SqlServer2KCompatibilityAnnotation.cs
- XhtmlBasicSelectionListAdapter.cs
- GenericIdentity.cs
- MetadataException.cs
- StorageEntitySetMapping.cs
- DataControlExtensions.cs
- CharacterMetricsDictionary.cs
- SqlFunctionAttribute.cs
- WindowHideOrCloseTracker.cs
- NullRuntimeConfig.cs
- Line.cs
- HostProtectionPermission.cs
- SelectionItemProviderWrapper.cs
- FileReader.cs
- GregorianCalendar.cs
- URLBuilder.cs
- GPRECT.cs
- NotFiniteNumberException.cs
- Dump.cs
- dtdvalidator.cs
- SapiAttributeParser.cs
- CompilerTypeWithParams.cs
- Restrictions.cs
- ErrorHandler.cs
- BoundPropertyEntry.cs
- SaveFileDialog.cs
- SymbolMethod.cs
- Events.cs
- CodeTypeReferenceCollection.cs
- DbProviderFactory.cs
- ExpressionPrefixAttribute.cs