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
- SqlFormatter.cs
- LinqDataSourceSelectEventArgs.cs
- SectionVisual.cs
- ObjectTypeMapping.cs
- ConsoleCancelEventArgs.cs
- ValidationRule.cs
- XmlNavigatorFilter.cs
- DriveNotFoundException.cs
- RIPEMD160.cs
- StateMachine.cs
- UnmanagedHandle.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- EncoderReplacementFallback.cs
- AssociationTypeEmitter.cs
- GridViewSortEventArgs.cs
- Storyboard.cs
- MD5Cng.cs
- FormViewPageEventArgs.cs
- LockRecoveryTask.cs
- ThreadStaticAttribute.cs
- QuadraticBezierSegment.cs
- SqlRemoveConstantOrderBy.cs
- ProtectedConfigurationProviderCollection.cs
- PrimitiveType.cs
- DeferredReference.cs
- HandleCollector.cs
- KeyPullup.cs
- Condition.cs
- Storyboard.cs
- InputScopeConverter.cs
- DeploymentExceptionMapper.cs
- SqlGenerator.cs
- CompressedStack.cs
- DbDataAdapter.cs
- KeyGestureConverter.cs
- PropertyValueChangedEvent.cs
- StylusPointPropertyInfo.cs
- LoginName.cs
- SortedSetDebugView.cs
- InheritanceAttribute.cs
- MetabaseSettingsIis7.cs
- MetadataUtil.cs
- EntityDesignerBuildProvider.cs
- GridSplitterAutomationPeer.cs
- HtmlElementEventArgs.cs
- DesignerForm.cs
- StringReader.cs
- ValueConversionAttribute.cs
- NonVisualControlAttribute.cs
- VisualStyleRenderer.cs
- DependencyProperty.cs
- PermissionToken.cs
- MimeMapping.cs
- PageContentCollection.cs
- ColorConverter.cs
- ImageListStreamer.cs
- HttpAsyncResult.cs
- DataGridViewColumn.cs
- CredentialCache.cs
- _ChunkParse.cs
- XamlValidatingReader.cs
- ExpressionEvaluator.cs
- TextContainerChangedEventArgs.cs
- TimeoutHelper.cs
- NavigationWindowAutomationPeer.cs
- CoordinationService.cs
- MetadataUtilsSmi.cs
- ParentQuery.cs
- ReadWriteControlDesigner.cs
- PageStatePersister.cs
- StatusStrip.cs
- ObjectReaderCompiler.cs
- XamlBrushSerializer.cs
- RelationshipEndMember.cs
- ServicesSection.cs
- DisableDpiAwarenessAttribute.cs
- Validator.cs
- _AutoWebProxyScriptHelper.cs
- LineGeometry.cs
- Span.cs
- WorkflowEventArgs.cs
- PartialTrustVisibleAssembliesSection.cs
- RedirectionProxy.cs
- CorePropertiesFilter.cs
- DiscardableAttribute.cs
- Soap.cs
- PolicyAssertionCollection.cs
- ReferenceEqualityComparer.cs
- _NetworkingPerfCounters.cs
- ExceptionWrapper.cs
- UrlMapping.cs
- PhysicalFontFamily.cs
- EdmToObjectNamespaceMap.cs
- Parsers.cs
- RotateTransform3D.cs
- RegexInterpreter.cs
- OperationAbortedException.cs
- TaiwanCalendar.cs
- HttpCachePolicy.cs
- VariantWrapper.cs