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
- ToolboxItemFilterAttribute.cs
- CustomAssemblyResolver.cs
- ServerTooBusyException.cs
- ComponentResourceManager.cs
- CellConstant.cs
- SoapIncludeAttribute.cs
- OrthographicCamera.cs
- SmtpTransport.cs
- Currency.cs
- VirtualPath.cs
- Bits.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- xsdvalidator.cs
- AsymmetricSignatureDeformatter.cs
- PerformanceCounterScope.cs
- ServiceOperation.cs
- ManipulationDeltaEventArgs.cs
- EventArgs.cs
- MatrixCamera.cs
- AmbiguousMatchException.cs
- DnsCache.cs
- configsystem.cs
- FontNamesConverter.cs
- DbParameterHelper.cs
- CreateUserErrorEventArgs.cs
- WindowsNonControl.cs
- ComplexPropertyEntry.cs
- SubtreeProcessor.cs
- DecoratedNameAttribute.cs
- ProjectionPruner.cs
- MatrixTransform3D.cs
- ListControlStringCollectionEditor.cs
- MediaContextNotificationWindow.cs
- DBSqlParser.cs
- AdapterUtil.cs
- EnumMemberAttribute.cs
- ImmComposition.cs
- EntityCommandCompilationException.cs
- Bitmap.cs
- DrawingGroupDrawingContext.cs
- EdmScalarPropertyAttribute.cs
- LocalizationParserHooks.cs
- GenericUriParser.cs
- KeyEventArgs.cs
- ZipIOBlockManager.cs
- MediaPlayerState.cs
- SoapParser.cs
- DependencyPropertyKey.cs
- XLinq.cs
- ResourceExpression.cs
- InputBindingCollection.cs
- Expression.cs
- GenericXmlSecurityTokenAuthenticator.cs
- WebPartChrome.cs
- Speller.cs
- DbCommandTree.cs
- ListItemParagraph.cs
- ObservableCollection.cs
- GridViewSelectEventArgs.cs
- CodeObject.cs
- TPLETWProvider.cs
- SimpleBitVector32.cs
- LassoHelper.cs
- OdbcDataReader.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ResourceContainer.cs
- DataRecordObjectView.cs
- IdentityElement.cs
- Vector.cs
- DataGridBoolColumn.cs
- ActivityWithResultValueSerializer.cs
- ParameterExpression.cs
- TextTreeUndoUnit.cs
- IntSecurity.cs
- XmlElementList.cs
- DynamicPropertyHolder.cs
- InputMethodStateChangeEventArgs.cs
- MatrixUtil.cs
- HttpValueCollection.cs
- QueryRewriter.cs
- VirtualDirectoryMapping.cs
- EntityDesignerBuildProvider.cs
- TreeNodeClickEventArgs.cs
- ImplicitInputBrush.cs
- Polyline.cs
- QuaternionAnimation.cs
- RuntimeHelpers.cs
- CounterCreationDataCollection.cs
- Typeface.cs
- ProviderMetadata.cs
- TemplateBindingExtension.cs
- XmlSchemaAnnotation.cs
- StylusCollection.cs
- AlphaSortedEnumConverter.cs
- ConfigXmlAttribute.cs
- PropertyEmitter.cs
- Operand.cs
- Classification.cs
- DeclaredTypeValidator.cs
- CompoundFileDeflateTransform.cs