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
- DbInsertCommandTree.cs
- RegisteredScript.cs
- EntityDataSourceWizardForm.cs
- DataGridRow.cs
- Select.cs
- DisplayNameAttribute.cs
- DispatcherHooks.cs
- KnownTypesHelper.cs
- CounterCreationData.cs
- CheckBoxStandardAdapter.cs
- CorePropertiesFilter.cs
- ProcessModule.cs
- PersonalizableTypeEntry.cs
- ParallelTimeline.cs
- Int32RectConverter.cs
- DataBindingList.cs
- TokenDescriptor.cs
- Misc.cs
- TemplateBamlRecordReader.cs
- WeakRefEnumerator.cs
- SortFieldComparer.cs
- FieldTemplateFactory.cs
- SegmentTree.cs
- ActivityExecutionFilter.cs
- GPPOINT.cs
- UnauthorizedWebPart.cs
- TreeIterator.cs
- OptimalTextSource.cs
- GPRECTF.cs
- dbdatarecord.cs
- FilteredDataSetHelper.cs
- CapabilitiesUse.cs
- NativeCppClassAttribute.cs
- Blend.cs
- PackageProperties.cs
- ProxyWebPartConnectionCollection.cs
- CriticalHandle.cs
- InvalidPrinterException.cs
- WebServiceReceive.cs
- TextTreeNode.cs
- HtmlMeta.cs
- XmlExpressionDumper.cs
- Convert.cs
- ChangeTracker.cs
- CriticalFileToken.cs
- InstanceDataCollectionCollection.cs
- RequestSecurityTokenResponseCollection.cs
- BinHexEncoding.cs
- SQLByte.cs
- PathTooLongException.cs
- SqlDataSourceStatusEventArgs.cs
- XmlDocumentType.cs
- FirstMatchCodeGroup.cs
- ImageSourceConverter.cs
- Type.cs
- OutputScopeManager.cs
- WebPartsPersonalizationAuthorization.cs
- PropertyCollection.cs
- Int32Collection.cs
- EventDescriptor.cs
- _ListenerResponseStream.cs
- WizardStepBase.cs
- DescendentsWalkerBase.cs
- ZipIORawDataFileBlock.cs
- URLAttribute.cs
- AddingNewEventArgs.cs
- DiscreteKeyFrames.cs
- RectConverter.cs
- ImportOptions.cs
- PersonalizableTypeEntry.cs
- HostedTcpTransportManager.cs
- NameSpaceExtractor.cs
- ScrollPattern.cs
- RtfToXamlReader.cs
- ListBindingHelper.cs
- RequestNavigateEventArgs.cs
- SystemWebExtensionsSectionGroup.cs
- DurableInstanceProvider.cs
- FacetChecker.cs
- EditorZone.cs
- BindingMAnagerBase.cs
- BackgroundFormatInfo.cs
- DataViewListener.cs
- PreProcessor.cs
- FileSystemEventArgs.cs
- _NetRes.cs
- Int16Converter.cs
- ITreeGenerator.cs
- VisualBrush.cs
- XmlQualifiedNameTest.cs
- CompositionAdorner.cs
- PhysicalFontFamily.cs
- OciEnlistContext.cs
- ToolStripLocationCancelEventArgs.cs
- PartitionedDataSource.cs
- DataRow.cs
- CharStorage.cs
- TemplateBuilder.cs
- PerformanceCounterManager.cs
- XmlAttributes.cs