Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- RetrieveVirtualItemEventArgs.cs
- ReflectionTypeLoadException.cs
- TransformerInfo.cs
- BuildDependencySet.cs
- EntityTypeEmitter.cs
- AttributeUsageAttribute.cs
- CodeNamespaceCollection.cs
- GroupBoxAutomationPeer.cs
- DescendentsWalker.cs
- SmtpNetworkElement.cs
- ServiceOperationListItemList.cs
- ClientBase.cs
- IndexedGlyphRun.cs
- MenuItemCollection.cs
- PopOutPanel.cs
- WorkItem.cs
- CustomErrorsSectionWrapper.cs
- PolyBezierSegment.cs
- TransactionFlowAttribute.cs
- ServiceMetadataContractBehavior.cs
- OleDbInfoMessageEvent.cs
- PeerInvitationResponse.cs
- Int32RectValueSerializer.cs
- NativeMethodsOther.cs
- MatrixTransform.cs
- GroupBox.cs
- ConstraintCollection.cs
- odbcmetadatacolumnnames.cs
- EntryPointNotFoundException.cs
- DispatcherEventArgs.cs
- IPGlobalProperties.cs
- EntryWrittenEventArgs.cs
- Triplet.cs
- TemplateColumn.cs
- WebPartPersonalization.cs
- BitmapEffectGeneralTransform.cs
- ImageCreator.cs
- StorageMappingItemLoader.cs
- SymbolResolver.cs
- ping.cs
- Condition.cs
- EditorZone.cs
- ZipPackagePart.cs
- CodeTypeMemberCollection.cs
- AddingNewEventArgs.cs
- TdsParameterSetter.cs
- SoapMessage.cs
- Latin1Encoding.cs
- ChildrenQuery.cs
- AttachmentCollection.cs
- Header.cs
- SchemaTypeEmitter.cs
- SelectionChangedEventArgs.cs
- EntityDataSourceWizardForm.cs
- ItemCheckedEvent.cs
- assemblycache.cs
- COM2TypeInfoProcessor.cs
- SystemIcons.cs
- PageFunction.cs
- SAPIEngineTypes.cs
- DescendantOverDescendantQuery.cs
- PropertyCondition.cs
- NamespaceDecl.cs
- ControlPropertyNameConverter.cs
- StaticExtension.cs
- FrameworkContentElementAutomationPeer.cs
- IisTraceWebEventProvider.cs
- LayoutEngine.cs
- PrtCap_Builder.cs
- Char.cs
- FocusWithinProperty.cs
- DPAPIProtectedConfigurationProvider.cs
- DbMetaDataCollectionNames.cs
- X509Utils.cs
- DataObjectPastingEventArgs.cs
- DataPointer.cs
- DetailsViewInsertEventArgs.cs
- SHA512Managed.cs
- ContainerControl.cs
- CodeExpressionStatement.cs
- ListenerConnectionModeReader.cs
- ContentWrapperAttribute.cs
- DataPagerCommandEventArgs.cs
- Rfc4050KeyFormatter.cs
- XmlTextEncoder.cs
- InternalDuplexChannelFactory.cs
- SerializationHelper.cs
- RegistryExceptionHelper.cs
- Utils.cs
- shaperfactory.cs
- VisualStyleInformation.cs
- SplashScreenNativeMethods.cs
- TreeViewHitTestInfo.cs
- configsystem.cs
- SourceLineInfo.cs
- SafePEFileHandle.cs
- MsmqUri.cs
- DataBoundLiteralControl.cs
- CommandHelper.cs
- PropertyNames.cs