Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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(); } } }/// 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
- Html32TextWriter.cs
- SecureConversationServiceElement.cs
- PasswordRecovery.cs
- ThicknessAnimationBase.cs
- WindowsButton.cs
- NestedContainer.cs
- MLangCodePageEncoding.cs
- ProxyWebPart.cs
- CodeTypeReferenceSerializer.cs
- StackBuilderSink.cs
- FlagsAttribute.cs
- TextBoxLine.cs
- CompilerTypeWithParams.cs
- MemberListBinding.cs
- DataControlButton.cs
- DesignerCategoryAttribute.cs
- CustomErrorsSection.cs
- BooleanKeyFrameCollection.cs
- ObjectManager.cs
- WebCategoryAttribute.cs
- AsymmetricKeyExchangeFormatter.cs
- AccessViolationException.cs
- XmlValidatingReader.cs
- CompiledIdentityConstraint.cs
- HtmlPanelAdapter.cs
- SplitterEvent.cs
- EdmFunction.cs
- ResourcePool.cs
- RegisteredArrayDeclaration.cs
- GPPOINT.cs
- CommandValueSerializer.cs
- IntSecurity.cs
- CompileXomlTask.cs
- DesignSurfaceManager.cs
- ColorTransformHelper.cs
- Point3DKeyFrameCollection.cs
- ProcessHostMapPath.cs
- FormsIdentity.cs
- DataTableReader.cs
- TextParagraphView.cs
- InputManager.cs
- Point3DKeyFrameCollection.cs
- AssociationType.cs
- ExternalFile.cs
- StylusCaptureWithinProperty.cs
- SqlConnectionFactory.cs
- XmlAnyElementAttribute.cs
- BooleanConverter.cs
- WeakHashtable.cs
- SizeKeyFrameCollection.cs
- _BufferOffsetSize.cs
- TextDecorationCollection.cs
- MetadataItemCollectionFactory.cs
- Splitter.cs
- ReadOnlyTernaryTree.cs
- SqlWriter.cs
- LiteralTextContainerControlBuilder.cs
- Logging.cs
- PointHitTestResult.cs
- PropertyCollection.cs
- Stopwatch.cs
- XmlSchemaExternal.cs
- DBAsyncResult.cs
- PageThemeParser.cs
- TriggerAction.cs
- CallbackHandler.cs
- XmlNamespaceManager.cs
- OutputCacheEntry.cs
- DropTarget.cs
- CatchDesigner.xaml.cs
- UserControlParser.cs
- RepeatInfo.cs
- HMACMD5.cs
- HtmlElementCollection.cs
- MergeFailedEvent.cs
- TypeBrowserDialog.cs
- ColorContext.cs
- ZeroOpNode.cs
- TokenBasedSetEnumerator.cs
- CqlGenerator.cs
- ColorConvertedBitmapExtension.cs
- PerformanceCounters.cs
- SqlSupersetValidator.cs
- TextSelectionHelper.cs
- XmlSchemaAttributeGroup.cs
- DynamicRenderer.cs
- PieceNameHelper.cs
- ServicesUtilities.cs
- AtomMaterializerLog.cs
- CallbackValidator.cs
- TypeLibConverter.cs
- InfocardChannelParameter.cs
- CountAggregationOperator.cs
- WebPartTransformerCollection.cs
- RegexWriter.cs
- ViewBox.cs
- EditorBrowsableAttribute.cs
- SafeIUnknown.cs
- DataGridViewColumnCollection.cs
- SqlUDTStorage.cs