Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / ListBindableAttribute.cs / 1305376 / 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
- XmlSchema.cs
- XmlParserContext.cs
- UshortList2.cs
- CallContext.cs
- ErrorRuntimeConfig.cs
- DataGridViewLinkColumn.cs
- ThreadStateException.cs
- SecurityDescriptor.cs
- ObjectIDGenerator.cs
- MenuItem.cs
- DockEditor.cs
- Light.cs
- VideoDrawing.cs
- SslStream.cs
- Roles.cs
- ColorMap.cs
- IOException.cs
- DataBindingsDialog.cs
- XMLSyntaxException.cs
- RestClientProxyHandler.cs
- fixedPageContentExtractor.cs
- HtmlInputSubmit.cs
- UnhandledExceptionEventArgs.cs
- NameValueConfigurationElement.cs
- PerformanceCounterManager.cs
- FixedTextBuilder.cs
- TrustManagerMoreInformation.cs
- MarkerProperties.cs
- OdbcConnectionString.cs
- XmlDataCollection.cs
- storepermission.cs
- RelationshipDetailsRow.cs
- GcHandle.cs
- ReliabilityContractAttribute.cs
- PropertyGrid.cs
- NonDualMessageSecurityOverHttp.cs
- EmbeddedMailObject.cs
- ToolStripSettings.cs
- LinkedResource.cs
- BooleanSwitch.cs
- SafeHandles.cs
- CodeCompileUnit.cs
- ProcessManager.cs
- PathGeometry.cs
- TabControlEvent.cs
- Activity.cs
- RequestCachingSection.cs
- RelationshipNavigation.cs
- EntityDataSourceUtil.cs
- MouseOverProperty.cs
- TableLayoutStyleCollection.cs
- DataControlCommands.cs
- AsymmetricSignatureDeformatter.cs
- WebPartConnection.cs
- MemoryPressure.cs
- WeakHashtable.cs
- ValidationSummary.cs
- LineSegment.cs
- DomainUpDown.cs
- SchemaNotation.cs
- TransactionState.cs
- StreamUpdate.cs
- DataContext.cs
- sortedlist.cs
- ByteStorage.cs
- KeyTimeConverter.cs
- Helpers.cs
- SmtpDigestAuthenticationModule.cs
- FormViewInsertedEventArgs.cs
- VerticalAlignConverter.cs
- PrimitiveSchema.cs
- ScanQueryOperator.cs
- GridViewColumnHeaderAutomationPeer.cs
- RecordManager.cs
- Delegate.cs
- ProfileSection.cs
- Transform.cs
- DynamicResourceExtension.cs
- Subtree.cs
- DecoderFallback.cs
- FamilyMapCollection.cs
- LinqDataSourceInsertEventArgs.cs
- MdiWindowListItemConverter.cs
- StreamResourceInfo.cs
- NotFiniteNumberException.cs
- ResponseBodyWriter.cs
- Panel.cs
- RectangleConverter.cs
- CollectionViewGroupRoot.cs
- MetadataSection.cs
- MetadataPropertyCollection.cs
- Model3DGroup.cs
- JournalEntryListConverter.cs
- PageRanges.cs
- SectionUpdates.cs
- CqlGenerator.cs
- HighContrastHelper.cs
- CanonicalFormWriter.cs
- BackgroundWorker.cs
- EncodingNLS.cs