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
- CharacterBufferReference.cs
- AccessDataSource.cs
- WebCategoryAttribute.cs
- KeyFrames.cs
- CodeTypeMember.cs
- BinaryObjectReader.cs
- PeerCustomResolverSettings.cs
- CustomErrorCollection.cs
- ProfilePropertySettings.cs
- FileDialog_Vista.cs
- ObjectItemCachedAssemblyLoader.cs
- Transform3DGroup.cs
- MtomMessageEncodingElement.cs
- SecurityDocument.cs
- DeferredSelectedIndexReference.cs
- GeneralTransformCollection.cs
- SiteMapProvider.cs
- SiteMapNode.cs
- _LocalDataStore.cs
- CommunicationObject.cs
- MobileUserControl.cs
- OleDbErrorCollection.cs
- ClientSettingsProvider.cs
- HtmlInputImage.cs
- CursorInteropHelper.cs
- ConfigXmlCDataSection.cs
- DependencyProperty.cs
- LogWriteRestartAreaAsyncResult.cs
- SyndicationDeserializer.cs
- NotConverter.cs
- AssemblyResourceLoader.cs
- Win32NamedPipes.cs
- DataViewSettingCollection.cs
- Query.cs
- ClientSettingsProvider.cs
- QueryableDataSourceHelper.cs
- PtsCache.cs
- PeerEndPoint.cs
- DesignerVerb.cs
- DynamicPropertyHolder.cs
- SafeRightsManagementSessionHandle.cs
- HotSpotCollection.cs
- ToolBar.cs
- QuestionEventArgs.cs
- GridSplitterAutomationPeer.cs
- MediaSystem.cs
- XpsInterleavingPolicy.cs
- RootBrowserWindow.cs
- LabelDesigner.cs
- ParameterEditorUserControl.cs
- ListControlActionList.cs
- RowCache.cs
- XmlExpressionDumper.cs
- OwnerDrawPropertyBag.cs
- AspNetSynchronizationContext.cs
- ActivationServices.cs
- TypeExtensionConverter.cs
- TransformationRules.cs
- StylusShape.cs
- SqlFormatter.cs
- XPathQueryGenerator.cs
- PropertyDescriptorGridEntry.cs
- ListBindingConverter.cs
- InputLangChangeRequestEvent.cs
- CheckPair.cs
- X509CertificateInitiatorServiceCredential.cs
- XmlAtomicValue.cs
- SqlNodeTypeOperators.cs
- PickBranch.cs
- DesignTimeVisibleAttribute.cs
- WindowsAuthenticationModule.cs
- DropShadowEffect.cs
- CompareValidator.cs
- CodePrimitiveExpression.cs
- RuntimeUtils.cs
- ParagraphVisual.cs
- VideoDrawing.cs
- InputChannelAcceptor.cs
- HttpCookieCollection.cs
- TextModifierScope.cs
- RawStylusInputCustomData.cs
- QilBinary.cs
- TextBoxRenderer.cs
- LogLogRecord.cs
- DataGridViewRowPostPaintEventArgs.cs
- ContentOperations.cs
- Assembly.cs
- TokenizerHelper.cs
- MimeWriter.cs
- RelationshipWrapper.cs
- PropertyMetadata.cs
- SelectionEditingBehavior.cs
- HtmlTableCell.cs
- LiteralDesigner.cs
- RightsManagementInformation.cs
- EntityContainerRelationshipSetEnd.cs
- TypeTypeConverter.cs
- UnconditionalPolicy.cs
- CompositeScriptReferenceEventArgs.cs
- SqlCaseSimplifier.cs