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
- ProgramNode.cs
- XmlParserContext.cs
- PersistenceTypeAttribute.cs
- RtfControls.cs
- XmlQueryStaticData.cs
- PathSegmentCollection.cs
- PagesSection.cs
- InputLangChangeRequestEvent.cs
- TextInfo.cs
- AssignDesigner.xaml.cs
- PropertyIDSet.cs
- CompilationSection.cs
- ZipIOCentralDirectoryBlock.cs
- EmbeddedMailObjectsCollection.cs
- SiteIdentityPermission.cs
- Assert.cs
- ManagedWndProcTracker.cs
- TimeZone.cs
- Base64WriteStateInfo.cs
- PrintingPermission.cs
- ObjectSet.cs
- SQLConvert.cs
- BamlRecords.cs
- SerializationObjectManager.cs
- ElementNotAvailableException.cs
- ChannelCacheDefaults.cs
- ToolStripContentPanelDesigner.cs
- DynamicMethod.cs
- TaiwanLunisolarCalendar.cs
- TagMapInfo.cs
- ServiceDeploymentInfo.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- NavigatorInput.cs
- ParameterCollection.cs
- ChangeToolStripParentVerb.cs
- NotificationContext.cs
- KeyedHashAlgorithm.cs
- StickyNoteAnnotations.cs
- CodeMemberField.cs
- StateBag.cs
- FieldBuilder.cs
- ComplexPropertyEntry.cs
- GroupBox.cs
- ElasticEase.cs
- CompletedAsyncResult.cs
- ClientRequest.cs
- OdbcError.cs
- PartialClassGenerationTask.cs
- LinkArea.cs
- Helpers.cs
- StylusPointPropertyInfoDefaults.cs
- XmlDataDocument.cs
- lengthconverter.cs
- FileChangesMonitor.cs
- TypeUsageBuilder.cs
- PageBuildProvider.cs
- HttpGetProtocolImporter.cs
- _Events.cs
- EntityContainerAssociationSet.cs
- AutomationPropertyInfo.cs
- RIPEMD160Managed.cs
- DataGridViewRowsRemovedEventArgs.cs
- _AcceptOverlappedAsyncResult.cs
- CompilerInfo.cs
- RawStylusInputCustomDataList.cs
- DataBindingList.cs
- DataGridViewTextBoxColumn.cs
- Italic.cs
- Location.cs
- AppDomainProtocolHandler.cs
- VectorCollectionValueSerializer.cs
- ITextView.cs
- SafeSecurityHandles.cs
- SqlCommandSet.cs
- XmlObjectSerializerReadContextComplex.cs
- DataGridViewToolTip.cs
- TableLayoutColumnStyleCollection.cs
- ExtentKey.cs
- BitmapEffectCollection.cs
- RepeaterItemEventArgs.cs
- GroupBoxRenderer.cs
- ExceptionUtil.cs
- AdapterUtil.cs
- Timer.cs
- OdbcEnvironment.cs
- DataBindingCollection.cs
- IsolationInterop.cs
- FormsAuthenticationTicket.cs
- SerializationStore.cs
- OracleConnectionFactory.cs
- URLMembershipCondition.cs
- SchemaMerger.cs
- EntityParameter.cs
- GroupStyle.cs
- SqlConnectionPoolProviderInfo.cs
- SettingsPropertyIsReadOnlyException.cs
- DiagnosticEventProvider.cs
- WindowsListViewItem.cs
- ExtensibleSyndicationObject.cs
- SymDocumentType.cs