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
- Vector3DConverter.cs
- GeometryGroup.cs
- TablePattern.cs
- XmlDocumentFragment.cs
- ContextMenuService.cs
- Set.cs
- XmlCharType.cs
- Ops.cs
- DLinqAssociationProvider.cs
- CompositeKey.cs
- FormViewCommandEventArgs.cs
- BufferedWebEventProvider.cs
- UserNameSecurityTokenProvider.cs
- TerminatorSinks.cs
- WebPartCancelEventArgs.cs
- SudsCommon.cs
- InputElement.cs
- CredentialManagerDialog.cs
- NativeMethods.cs
- MatrixStack.cs
- Int64Storage.cs
- DataGridViewCellStyle.cs
- TypeResolvingOptions.cs
- EnumBuilder.cs
- AllowedAudienceUriElementCollection.cs
- StringKeyFrameCollection.cs
- srgsitem.cs
- MetadataCache.cs
- ObjectDataSourceFilteringEventArgs.cs
- ByteAnimationUsingKeyFrames.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- DocumentsTrace.cs
- WebPartEditVerb.cs
- PerformanceCounterManager.cs
- InputLanguageEventArgs.cs
- CheckBox.cs
- EditorPartCollection.cs
- WebServiceMethodData.cs
- TransactionScope.cs
- ViewStateModeByIdAttribute.cs
- DrawingImage.cs
- EditorBrowsableAttribute.cs
- ButtonFlatAdapter.cs
- ScriptModule.cs
- ObjectParameterCollection.cs
- DBPropSet.cs
- X509Extension.cs
- SelectionListDesigner.cs
- XmlSchemaAll.cs
- XmlSchemaSimpleContentExtension.cs
- COM2ExtendedBrowsingHandler.cs
- __ConsoleStream.cs
- XPathAncestorIterator.cs
- XmlC14NWriter.cs
- RootBrowserWindowProxy.cs
- StringReader.cs
- xml.cs
- CacheDependency.cs
- SQLString.cs
- EventPropertyMap.cs
- MetabaseServerConfig.cs
- TypeHelper.cs
- ExternalException.cs
- NoResizeHandleGlyph.cs
- mediaeventargs.cs
- SmiGettersStream.cs
- WindowsTokenRoleProvider.cs
- RequestUriProcessor.cs
- DependencyProperty.cs
- DataGridItemAutomationPeer.cs
- SystemIPInterfaceProperties.cs
- SiteMap.cs
- DataGridHeaderBorder.cs
- DoubleStorage.cs
- IteratorDescriptor.cs
- TemplateComponentConnector.cs
- TriggerAction.cs
- filewebrequest.cs
- EdmValidator.cs
- Variant.cs
- CompModHelpers.cs
- ResourcesGenerator.cs
- GridSplitter.cs
- StylusShape.cs
- TreeWalkHelper.cs
- Compilation.cs
- CardSpacePolicyElement.cs
- SmiEventSink_DeferedProcessing.cs
- TextBreakpoint.cs
- FileVersionInfo.cs
- DecimalAnimationBase.cs
- MessageEncoderFactory.cs
- ApplicationBuildProvider.cs
- DbProviderConfigurationHandler.cs
- DataGridTablesFactory.cs
- QilBinary.cs
- ServiceInfo.cs
- Cloud.cs
- DeclarativeCatalogPartDesigner.cs
- HtmlInputHidden.cs