Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- AttributeCollection.cs
- DropShadowEffect.cs
- MetadataPropertyAttribute.cs
- HttpModuleActionCollection.cs
- MutexSecurity.cs
- XmlCollation.cs
- VolatileEnlistmentState.cs
- PreservationFileWriter.cs
- ContractTypeNameElement.cs
- RegularExpressionValidator.cs
- ViewKeyConstraint.cs
- SequenceRange.cs
- DesignTimeParseData.cs
- TableProvider.cs
- TreeWalkHelper.cs
- WebScriptServiceHostFactory.cs
- AuthenticatedStream.cs
- ProfileInfo.cs
- latinshape.cs
- PointAnimation.cs
- HttpHandlerActionCollection.cs
- Touch.cs
- NetTcpBindingElement.cs
- Camera.cs
- ScriptControl.cs
- ProxyGenerationError.cs
- SqlDataSourceCommandEventArgs.cs
- DuplicateWaitObjectException.cs
- SafeMarshalContext.cs
- ClientBuildManager.cs
- BitmapDecoder.cs
- ErrorLog.cs
- EntityModelSchemaGenerator.cs
- Helpers.cs
- XamlTypeMapper.cs
- FixedStringLookup.cs
- Util.cs
- TextServicesManager.cs
- ObjectIDGenerator.cs
- SByteConverter.cs
- UnauthorizedAccessException.cs
- FocusChangedEventArgs.cs
- DbDeleteCommandTree.cs
- CalculatedColumn.cs
- MediaSystem.cs
- WebReferencesBuildProvider.cs
- XPathArrayIterator.cs
- Button.cs
- Aggregates.cs
- XmlValidatingReader.cs
- OracleDataAdapter.cs
- ProgressBar.cs
- TextViewDesigner.cs
- GifBitmapEncoder.cs
- SafeCryptContextHandle.cs
- SmiRecordBuffer.cs
- EntityDataSource.cs
- Command.cs
- Rotation3DAnimationBase.cs
- TitleStyle.cs
- FastPropertyAccessor.cs
- CombinedHttpChannel.cs
- ObjectDesignerDataSourceView.cs
- WebServiceFaultDesigner.cs
- SqlCommandBuilder.cs
- IconHelper.cs
- XsltConvert.cs
- IMembershipProvider.cs
- SqlFileStream.cs
- LogicalTreeHelper.cs
- GenericTypeParameterBuilder.cs
- DefaultEventAttribute.cs
- OdbcCommand.cs
- TimeSpanConverter.cs
- OracleParameter.cs
- CapabilitiesSection.cs
- ChannelBinding.cs
- GeometryConverter.cs
- DecoderFallback.cs
- PackageRelationship.cs
- ListenerSingletonConnectionReader.cs
- SectionRecord.cs
- QueryReaderSettings.cs
- TypedReference.cs
- _LocalDataStoreMgr.cs
- TrustLevel.cs
- ClientBuildManagerCallback.cs
- SinglePageViewer.cs
- TcpConnectionPool.cs
- SimpleWorkerRequest.cs
- Rules.cs
- LinkedResourceCollection.cs
- UnauthorizedWebPart.cs
- PermissionListSet.cs
- DocumentGrid.cs
- EntityContainerEntitySet.cs
- SchemaMerger.cs
- ZipIOExtraField.cs
- WebPartPersonalization.cs
- ToolStripItemImageRenderEventArgs.cs