Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / DefaultBindingPropertyAttribute.cs / 1 / DefaultBindingPropertyAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public sealed class DefaultBindingPropertyAttribute : Attribute { private readonly string name; ///Specifies the default binding property for a component. ////// public DefaultBindingPropertyAttribute() { this.name = null; } ////// Initializes a new instance of /// the ///class. /// /// public DefaultBindingPropertyAttribute(string name) { this.name = name; } ////// Initializes a new instance of /// the ///class. /// /// public string Name { get { return name; } } ////// Gets the name of the default binding property for the component this attribute is /// bound to. /// ////// public static readonly DefaultBindingPropertyAttribute Default = new DefaultBindingPropertyAttribute(); public override bool Equals(object obj) { DefaultBindingPropertyAttribute other = obj as DefaultBindingPropertyAttribute; return other != null && other.Name == name; } public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// Specifies the default value for the ///, which is . This /// field is read-only. /// // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public sealed class DefaultBindingPropertyAttribute : Attribute { private readonly string name; ///Specifies the default binding property for a component. ////// public DefaultBindingPropertyAttribute() { this.name = null; } ////// Initializes a new instance of /// the ///class. /// /// public DefaultBindingPropertyAttribute(string name) { this.name = name; } ////// Initializes a new instance of /// the ///class. /// /// public string Name { get { return name; } } ////// Gets the name of the default binding property for the component this attribute is /// bound to. /// ////// public static readonly DefaultBindingPropertyAttribute Default = new DefaultBindingPropertyAttribute(); public override bool Equals(object obj) { DefaultBindingPropertyAttribute other = obj as DefaultBindingPropertyAttribute; return other != null && other.Name == name; } public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// Specifies the default value for the ///, which is . This /// field is read-only. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- regiisutil.cs
- ThreadNeutralSemaphore.cs
- DiagnosticsConfigurationHandler.cs
- DSACryptoServiceProvider.cs
- TemplateBuilder.cs
- ImageListStreamer.cs
- BindingWorker.cs
- ReadOnlyDictionary.cs
- InvalidCastException.cs
- SafeRightsManagementHandle.cs
- TemplateControlCodeDomTreeGenerator.cs
- SeekStoryboard.cs
- XNodeValidator.cs
- ImagingCache.cs
- CopyNodeSetAction.cs
- XamlTypeMapper.cs
- IImplicitResourceProvider.cs
- UpdateTranslator.cs
- ISAPIApplicationHost.cs
- _StreamFramer.cs
- C14NUtil.cs
- CodeDomConfigurationHandler.cs
- ConfigurationValidatorAttribute.cs
- EqualityComparer.cs
- ContainerSelectorActiveEvent.cs
- OutOfProcStateClientManager.cs
- BufferModeSettings.cs
- VirtualDirectoryMapping.cs
- HttpCapabilitiesEvaluator.cs
- AmbientLight.cs
- SqlProcedureAttribute.cs
- XmlPreloadedResolver.cs
- HtmlInputButton.cs
- Group.cs
- DetailsViewPageEventArgs.cs
- WindowsSysHeader.cs
- SoapHeader.cs
- EmissiveMaterial.cs
- OletxDependentTransaction.cs
- DomNameTable.cs
- WsiProfilesElementCollection.cs
- MemberPath.cs
- StaticSiteMapProvider.cs
- AutomationElementCollection.cs
- TabletCollection.cs
- StylusEditingBehavior.cs
- CodeTryCatchFinallyStatement.cs
- SafeNativeMethods.cs
- Contracts.cs
- RegistryKey.cs
- DataContract.cs
- SoapAttributes.cs
- WindowsAuthenticationEventArgs.cs
- HttpContext.cs
- Command.cs
- RegexCode.cs
- SystemIPAddressInformation.cs
- ParserHooks.cs
- RewritingPass.cs
- InputMethodStateTypeInfo.cs
- TabletCollection.cs
- BreakSafeBase.cs
- ConstrainedDataObject.cs
- SwitchLevelAttribute.cs
- InternalCache.cs
- Point3DConverter.cs
- InkCanvasFeedbackAdorner.cs
- Icon.cs
- SafeLibraryHandle.cs
- SafeFindHandle.cs
- DynamicResourceExtensionConverter.cs
- FixedBufferAttribute.cs
- NestPullup.cs
- PrintingPermission.cs
- CustomCategoryAttribute.cs
- CharEnumerator.cs
- DataList.cs
- DataGridViewCellCancelEventArgs.cs
- CryptoProvider.cs
- CfgParser.cs
- TypographyProperties.cs
- DependencyPropertyDescriptor.cs
- XmlSchemaInfo.cs
- arclist.cs
- SQLDoubleStorage.cs
- ClientCultureInfo.cs
- XmlILAnnotation.cs
- WindowsNonControl.cs
- LoggedException.cs
- Propagator.JoinPropagator.cs
- ListControlBoundActionList.cs
- XmlNodeChangedEventArgs.cs
- OperationParameterInfoCollection.cs
- ByteRangeDownloader.cs
- GuidelineCollection.cs
- SynchronizationContext.cs
- versioninfo.cs
- WindowsGraphics2.cs
- TraversalRequest.cs
- ExpressionBinding.cs