Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataWebControls / System / Data / WebControls / ResourceDescriptionAttribute.cs / 1 / ResourceDescriptionAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Reflection; namespace System.Web.UI.WebControls { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Event, Inherited = true, AllowMultiple = false)] internal sealed class ResourceDescriptionAttribute : DescriptionAttribute { private bool _resourceLoaded; private readonly string _descriptionResourceName; public ResourceDescriptionAttribute(string descriptionResourceName) { _descriptionResourceName = descriptionResourceName; } public override string Description { get { if (!_resourceLoaded) { _resourceLoaded = true; DescriptionValue = System.Web.UI.WebControlsRes.GetString(_descriptionResourceName); } return base.Description; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Reflection; namespace System.Web.UI.WebControls { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Event, Inherited = true, AllowMultiple = false)] internal sealed class ResourceDescriptionAttribute : DescriptionAttribute { private bool _resourceLoaded; private readonly string _descriptionResourceName; public ResourceDescriptionAttribute(string descriptionResourceName) { _descriptionResourceName = descriptionResourceName; } public override string Description { get { if (!_resourceLoaded) { _resourceLoaded = true; DescriptionValue = System.Web.UI.WebControlsRes.GetString(_descriptionResourceName); } return base.Description; } } } } // 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
- TableStyle.cs
- KeyTimeConverter.cs
- ObjectAnimationUsingKeyFrames.cs
- TypeUtils.cs
- CircleHotSpot.cs
- RolePrincipal.cs
- HashAlgorithm.cs
- FlatButtonAppearance.cs
- StorageEntityContainerMapping.cs
- LinkLabelLinkClickedEvent.cs
- WebPartConnectionsCancelEventArgs.cs
- XmlDictionaryWriter.cs
- WindowsSpinner.cs
- Rijndael.cs
- ILGen.cs
- PeerHelpers.cs
- DefaultObjectMappingItemCollection.cs
- XamlWriter.cs
- TabControlCancelEvent.cs
- backend.cs
- TableLayoutStyleCollection.cs
- ControlBindingsCollection.cs
- ReflectionTypeLoadException.cs
- ApplicationManager.cs
- PasswordTextNavigator.cs
- OdbcDataAdapter.cs
- SchemaType.cs
- ContentOperations.cs
- RowBinding.cs
- PersistenceParticipant.cs
- NullableFloatMinMaxAggregationOperator.cs
- GenericArgumentsUpdater.cs
- WebPartZoneCollection.cs
- DuplexChannelFactory.cs
- PinnedBufferMemoryStream.cs
- XsltFunctions.cs
- DtcInterfaces.cs
- XPathNodeList.cs
- WebPartEditorApplyVerb.cs
- VisualCollection.cs
- EditorPart.cs
- ObjectItemConventionAssemblyLoader.cs
- TextParaLineResult.cs
- SmtpFailedRecipientsException.cs
- HyperLinkDataBindingHandler.cs
- CultureSpecificStringDictionary.cs
- DataGridCaption.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- AvTraceFormat.cs
- KoreanLunisolarCalendar.cs
- BorderSidesEditor.cs
- RegexWorker.cs
- Vars.cs
- StartFileNameEditor.cs
- Stylesheet.cs
- NumberFunctions.cs
- BrowserCapabilitiesFactoryBase.cs
- WindowsListViewItem.cs
- RoleService.cs
- WaitHandleCannotBeOpenedException.cs
- ResourceWriter.cs
- RightNameExpirationInfoPair.cs
- RuntimeCompatibilityAttribute.cs
- StringValueConverter.cs
- Vector3D.cs
- UnsafeNativeMethods.cs
- HwndTarget.cs
- PolyQuadraticBezierSegment.cs
- ContainerControl.cs
- DataGrid.cs
- CompoundFileIOPermission.cs
- SqlStream.cs
- TemplateBamlRecordReader.cs
- SecurityState.cs
- EntityObject.cs
- HttpNamespaceReservationInstallComponent.cs
- RequiredAttributeAttribute.cs
- cookieexception.cs
- XmlSerializationReader.cs
- FontCacheLogic.cs
- milrender.cs
- WorkflowIdleBehavior.cs
- HttpModuleActionCollection.cs
- __FastResourceComparer.cs
- DataMemberFieldConverter.cs
- DataSourceSelectArguments.cs
- ErasingStroke.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- IntegerValidatorAttribute.cs
- CompilerInfo.cs
- ApplicationFileCodeDomTreeGenerator.cs
- AssemblyInfo.cs
- X509ChainPolicy.cs
- PropertyTabAttribute.cs
- ASCIIEncoding.cs
- CursorConverter.cs
- SourceSwitch.cs
- dsa.cs
- EDesignUtil.cs
- AuthenticationSection.cs