Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Utils.cs
- CrossSiteScriptingValidation.cs
- FileDialog.cs
- DataGridParentRows.cs
- Axis.cs
- WebResourceAttribute.cs
- TemplateKeyConverter.cs
- StringPropertyBuilder.cs
- DecoderNLS.cs
- ModuleElement.cs
- objectquery_tresulttype.cs
- SafeArrayRankMismatchException.cs
- ErrorWebPart.cs
- NodeFunctions.cs
- PartitionResolver.cs
- CodeDelegateCreateExpression.cs
- sqlpipe.cs
- LayoutTableCell.cs
- IisHelper.cs
- RegexRunnerFactory.cs
- MultiTrigger.cs
- PathData.cs
- SelectionListDesigner.cs
- Token.cs
- PrintDialogException.cs
- File.cs
- SetIndexBinder.cs
- XmlSerializableReader.cs
- MonitoringDescriptionAttribute.cs
- NativeCppClassAttribute.cs
- TextureBrush.cs
- AnchoredBlock.cs
- ConfigXmlCDataSection.cs
- HwndSourceParameters.cs
- PatternMatcher.cs
- RenderData.cs
- WindowsPen.cs
- TemplateField.cs
- AuthenticationService.cs
- DictionaryBase.cs
- NativeMethods.cs
- DefaultAssemblyResolver.cs
- DesignConnection.cs
- XmlDocumentFieldSchema.cs
- XmlSchemaDatatype.cs
- CodeThrowExceptionStatement.cs
- WebControlToolBoxItem.cs
- EasingKeyFrames.cs
- OTFRasterizer.cs
- Point3DConverter.cs
- MenuItemCollection.cs
- TextFormatterImp.cs
- DataRelation.cs
- WebBaseEventKeyComparer.cs
- KeyGesture.cs
- MimeParameters.cs
- ComplexType.cs
- ContextQuery.cs
- CompileLiteralTextParser.cs
- Duration.cs
- ImageButton.cs
- FrameworkContentElementAutomationPeer.cs
- CacheAxisQuery.cs
- HtmlLiteralTextAdapter.cs
- SHA384Managed.cs
- PropertyReference.cs
- sqlser.cs
- ProtocolsConfigurationHandler.cs
- RequestReplyCorrelator.cs
- DirectoryInfo.cs
- GeometryModel3D.cs
- TransactedReceiveScope.cs
- VisualTreeHelper.cs
- PopupRoot.cs
- WebPartsPersonalization.cs
- PopOutPanel.cs
- SizeKeyFrameCollection.cs
- HttpResponseInternalWrapper.cs
- ProviderSettingsCollection.cs
- Assert.cs
- FacetChecker.cs
- CodeChecksumPragma.cs
- DocumentPageViewAutomationPeer.cs
- Sequence.cs
- Conditional.cs
- DragCompletedEventArgs.cs
- DbConnectionPoolOptions.cs
- CodeIdentifiers.cs
- ImportCatalogPart.cs
- FrameworkElement.cs
- RegexTree.cs
- XmlSchemaType.cs
- PolicyManager.cs
- Compensation.cs
- RelationshipSet.cs
- ChangePassword.cs
- TransformProviderWrapper.cs
- ImageList.cs
- OperationCanceledException.cs
- StandardCommands.cs