Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / DefaultBindingPropertyAttribute.cs / 1305376 / 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
- SharedUtils.cs
- PolygonHotSpot.cs
- Transform.cs
- Viewport3DVisual.cs
- CriticalExceptions.cs
- DocumentViewerAutomationPeer.cs
- BindingGraph.cs
- StaticTextPointer.cs
- Blend.cs
- NamespaceEmitter.cs
- AndCondition.cs
- Quaternion.cs
- CookielessHelper.cs
- DataGridViewAdvancedBorderStyle.cs
- CalloutQueueItem.cs
- ObjectListField.cs
- SimpleLine.cs
- SQLInt64Storage.cs
- Vector3DCollectionConverter.cs
- RuntimeResourceSet.cs
- TextLine.cs
- FragmentNavigationEventArgs.cs
- Socket.cs
- XmlNotation.cs
- COSERVERINFO.cs
- HitTestParameters3D.cs
- FontStretch.cs
- DataGridViewColumnEventArgs.cs
- GregorianCalendar.cs
- VisualStyleRenderer.cs
- RuleSettings.cs
- ToolStripCodeDomSerializer.cs
- ViewManager.cs
- CreateParams.cs
- OperationParameterInfo.cs
- CodeDirectoryCompiler.cs
- WebPartConnection.cs
- DbProviderFactoriesConfigurationHandler.cs
- IPHostEntry.cs
- RequiredAttributeAttribute.cs
- AdjustableArrowCap.cs
- XmlDataLoader.cs
- PlanCompilerUtil.cs
- ButtonBase.cs
- RegexCode.cs
- InvalidOperationException.cs
- WebPartConnection.cs
- AstNode.cs
- TreeIterator.cs
- MergeExecutor.cs
- HandledEventArgs.cs
- XmlSchemaObject.cs
- InheritanceAttribute.cs
- ResourceReferenceExpressionConverter.cs
- LocalValueEnumerator.cs
- HttpEncoder.cs
- FormViewDeleteEventArgs.cs
- RectKeyFrameCollection.cs
- FrameworkElement.cs
- XmlNavigatorFilter.cs
- LinqDataSourceUpdateEventArgs.cs
- OutputWindow.cs
- XmlUtil.cs
- DataGridViewDataConnection.cs
- ContractListAdapter.cs
- DoubleSumAggregationOperator.cs
- coordinator.cs
- RTLAwareMessageBox.cs
- Config.cs
- EncoderParameters.cs
- SqlParameter.cs
- DependencyProperty.cs
- TextEndOfLine.cs
- HtmlInputCheckBox.cs
- _ShellExpression.cs
- BuilderElements.cs
- TableDetailsRow.cs
- UpWmlPageAdapter.cs
- WebServiceClientProxyGenerator.cs
- NetworkAddressChange.cs
- CompoundFileReference.cs
- Parameter.cs
- SafeHandles.cs
- ConstraintCollection.cs
- ApplicationInfo.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- AlphabeticalEnumConverter.cs
- MouseOverProperty.cs
- RotationValidation.cs
- WebEvents.cs
- NetworkInformationException.cs
- ListBoxItemAutomationPeer.cs
- GcSettings.cs
- WindowClosedEventArgs.cs
- externdll.cs
- JavaScriptSerializer.cs
- Debug.cs
- TableLayoutSettingsTypeConverter.cs
- ArrayList.cs
- Color.cs