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 / ListBindableAttribute.cs / 1 / ListBindableAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.All)] public sealed class ListBindableAttribute : Attribute { ///[To be supplied.] ////// public static readonly ListBindableAttribute Yes = new ListBindableAttribute(true); ///[To be supplied.] ////// public static readonly ListBindableAttribute No = new ListBindableAttribute(false); ///[To be supplied.] ////// public static readonly ListBindableAttribute Default = Yes; private bool listBindable = false; private bool isDefault = false; ///[To be supplied.] ////// public ListBindableAttribute(bool listBindable) { this.listBindable = listBindable; } ///[To be supplied.] ////// public ListBindableAttribute(BindableSupport flags) { this.listBindable = (flags != BindableSupport.No); this.isDefault = (flags == BindableSupport.Default); } ///[To be supplied.] ////// public bool ListBindable { get { return listBindable; } } ///[To be supplied.] ////// public override bool Equals(object obj) { if (obj == this) { return true; } ListBindableAttribute other = obj as ListBindableAttribute; return other != null && other.ListBindable == listBindable; } ///[To be supplied.] ////// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// public override bool IsDefaultAttribute() { return (this.Equals(Default) || isDefault); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.All)] public sealed class ListBindableAttribute : Attribute { ///[To be supplied.] ////// public static readonly ListBindableAttribute Yes = new ListBindableAttribute(true); ///[To be supplied.] ////// public static readonly ListBindableAttribute No = new ListBindableAttribute(false); ///[To be supplied.] ////// public static readonly ListBindableAttribute Default = Yes; private bool listBindable = false; private bool isDefault = false; ///[To be supplied.] ////// public ListBindableAttribute(bool listBindable) { this.listBindable = listBindable; } ///[To be supplied.] ////// public ListBindableAttribute(BindableSupport flags) { this.listBindable = (flags != BindableSupport.No); this.isDefault = (flags == BindableSupport.Default); } ///[To be supplied.] ////// public bool ListBindable { get { return listBindable; } } ///[To be supplied.] ////// public override bool Equals(object obj) { if (obj == this) { return true; } ListBindableAttribute other = obj as ListBindableAttribute; return other != null && other.ListBindable == listBindable; } ///[To be supplied.] ////// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// public override bool IsDefaultAttribute() { return (this.Equals(Default) || isDefault); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlCharacterData.cs
- CorrelationValidator.cs
- PartialArray.cs
- UriTemplateMatchException.cs
- EventLogPermissionEntryCollection.cs
- InputElement.cs
- SectionXmlInfo.cs
- Rotation3D.cs
- ScrollableControlDesigner.cs
- DecimalAnimation.cs
- PeerTransportElement.cs
- UrlPath.cs
- UpdateException.cs
- XmlSerializerAssemblyAttribute.cs
- ServicesUtilities.cs
- CompilationSection.cs
- DBCommandBuilder.cs
- ErrorItem.cs
- TextElement.cs
- TerminatorSinks.cs
- XmlSchemaSet.cs
- DesignerTransaction.cs
- SelectionItemProviderWrapper.cs
- AmbientLight.cs
- TerminatorSinks.cs
- FrameworkElement.cs
- DesignerVerbCollection.cs
- smtppermission.cs
- RightsManagementEncryptedStream.cs
- ServiceHttpHandlerFactory.cs
- XmlTextReader.cs
- CodeDomConfigurationHandler.cs
- UserControl.cs
- TabControlDesigner.cs
- StubHelpers.cs
- InputScopeAttribute.cs
- NullReferenceException.cs
- ACE.cs
- Int64AnimationUsingKeyFrames.cs
- NavigationHelper.cs
- EntityDataSourceWizardForm.cs
- FaultPropagationRecord.cs
- DummyDataSource.cs
- System.Data_BID.cs
- SignerInfo.cs
- WaitHandleCannotBeOpenedException.cs
- AuthorizationSection.cs
- AnnotationMap.cs
- BinHexDecoder.cs
- ProjectionPath.cs
- GlobalEventManager.cs
- AutoScrollHelper.cs
- PtsHelper.cs
- ParameterModifier.cs
- Vector3DAnimationBase.cs
- clipboard.cs
- RelationshipFixer.cs
- NativeRecognizer.cs
- TreeNode.cs
- DoubleConverter.cs
- DependencyObject.cs
- IntegerCollectionEditor.cs
- RouteValueExpressionBuilder.cs
- TextTreeNode.cs
- WebPartManagerInternals.cs
- FormsAuthenticationConfiguration.cs
- ValidatorCompatibilityHelper.cs
- ImmComposition.cs
- Module.cs
- CheckBoxPopupAdapter.cs
- ClientType.cs
- XmlComplianceUtil.cs
- Literal.cs
- CodePageUtils.cs
- AggregateNode.cs
- ZipIOExtraField.cs
- NumericUpDownAcceleration.cs
- UnmanagedMarshal.cs
- StickyNoteHelper.cs
- MenuItemBinding.cs
- CompositeActivityDesigner.cs
- PersonalizationStateInfo.cs
- ImagingCache.cs
- NullReferenceException.cs
- Path.cs
- EdmFunction.cs
- NullReferenceException.cs
- ParallelDesigner.cs
- DefaultSection.cs
- DefaultEvaluationContext.cs
- BindStream.cs
- AvTraceDetails.cs
- DesignRelation.cs
- AccessedThroughPropertyAttribute.cs
- MexBindingBindingCollectionElement.cs
- JobDuplex.cs
- ISO2022Encoding.cs
- ProviderException.cs
- SettingsProviderCollection.cs
- CompilerErrorCollection.cs