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
- ErrorTableItemStyle.cs
- ConfigurationPropertyAttribute.cs
- DefaultBinder.cs
- MultiBindingExpression.cs
- InfoCardSymmetricCrypto.cs
- SqlDataSourceParameterParser.cs
- SByte.cs
- Transform.cs
- HandleCollector.cs
- ToolStripMenuItem.cs
- InvalidFilterCriteriaException.cs
- DesignSurfaceManager.cs
- DocumentPaginator.cs
- RotateTransform.cs
- SchemaReference.cs
- SrgsRulesCollection.cs
- TypeUtil.cs
- SubqueryRules.cs
- XmlElementAttributes.cs
- ParsedAttributeCollection.cs
- Rotation3D.cs
- SkinBuilder.cs
- IntegerValidatorAttribute.cs
- AsymmetricSecurityBindingElement.cs
- URLMembershipCondition.cs
- EntityDataSourceQueryBuilder.cs
- JsonStringDataContract.cs
- TargetPerspective.cs
- TimeSpanConverter.cs
- BaseComponentEditor.cs
- UpdateInfo.cs
- FileVersionInfo.cs
- TextSpanModifier.cs
- HostProtectionPermission.cs
- DebuggerAttributes.cs
- ListDictionary.cs
- GroupLabel.cs
- PlainXmlSerializer.cs
- SpeechRecognizer.cs
- ContentFilePart.cs
- Identity.cs
- CodeNamespaceCollection.cs
- GridViewSelectEventArgs.cs
- ConfigXmlCDataSection.cs
- FixedHighlight.cs
- Module.cs
- SecurityAccessDeniedException.cs
- HandlerBase.cs
- CommonGetThemePartSize.cs
- DataContext.cs
- FunctionQuery.cs
- PriorityQueue.cs
- MemberAssignmentAnalysis.cs
- MarkupExtensionParser.cs
- MaskedTextBox.cs
- SemaphoreFullException.cs
- HtmlElement.cs
- JsonObjectDataContract.cs
- RegexCaptureCollection.cs
- DataRelationCollection.cs
- FixedTextPointer.cs
- ParameterToken.cs
- OracleBFile.cs
- WindowsStatic.cs
- ComponentResourceManager.cs
- SafeUserTokenHandle.cs
- AtomicFile.cs
- AutomationPeer.cs
- EpmCustomContentDeSerializer.cs
- InkCollectionBehavior.cs
- OLEDB_Util.cs
- Italic.cs
- PeerCollaboration.cs
- nulltextcontainer.cs
- infer.cs
- CngProvider.cs
- ExpressionLexer.cs
- HtmlTableCell.cs
- FormViewPagerRow.cs
- DataGridColumn.cs
- MachineKeyConverter.cs
- PropertyEntry.cs
- KeyValueConfigurationCollection.cs
- DecoratedNameAttribute.cs
- streamingZipPartStream.cs
- StylusEventArgs.cs
- SimpleHandlerFactory.cs
- BinaryFormatter.cs
- ComNativeDescriptor.cs
- SettingsBase.cs
- PageParserFilter.cs
- TextAdaptor.cs
- TextElementCollection.cs
- ServiceHttpModule.cs
- ModulesEntry.cs
- GZipStream.cs
- UrlMappingCollection.cs
- SqlTriggerAttribute.cs
- Vector3DCollectionValueSerializer.cs
- EpmContentDeSerializerBase.cs