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
- SaveFileDialogDesigner.cs
- DrawListViewItemEventArgs.cs
- SignatureDescription.cs
- FontFamilyValueSerializer.cs
- WorkflowInvoker.cs
- ObjectToIdCache.cs
- BitmapEditor.cs
- TransformValueSerializer.cs
- BooleanStorage.cs
- Vector3DKeyFrameCollection.cs
- SqlRecordBuffer.cs
- HttpGetServerProtocol.cs
- AnnotationService.cs
- LocationReferenceEnvironment.cs
- HtmlHistory.cs
- BaseParaClient.cs
- TypeDescriptor.cs
- ServiceRouteHandler.cs
- SafeEventLogReadHandle.cs
- DataGridViewSelectedRowCollection.cs
- ImportCatalogPart.cs
- ProxyHwnd.cs
- XsdCachingReader.cs
- CorrelationManager.cs
- FormDocumentDesigner.cs
- Block.cs
- DeadCharTextComposition.cs
- TypeLoadException.cs
- DataControlField.cs
- XpsFilter.cs
- TableSectionStyle.cs
- EventDescriptor.cs
- Win32.cs
- TextSpan.cs
- ETagAttribute.cs
- QueryReaderSettings.cs
- VirtualDirectoryMapping.cs
- HttpCachePolicy.cs
- AnnotationMap.cs
- ContextMenu.cs
- SafeRightsManagementSessionHandle.cs
- GcSettings.cs
- NameValuePermission.cs
- ManifestResourceInfo.cs
- TraceContextEventArgs.cs
- Odbc32.cs
- OleDbParameter.cs
- UnicastIPAddressInformationCollection.cs
- IISMapPath.cs
- CodeRemoveEventStatement.cs
- webproxy.cs
- TextProviderWrapper.cs
- ClientTargetSection.cs
- IdleTimeoutMonitor.cs
- AffineTransform3D.cs
- Binding.cs
- XPathPatternBuilder.cs
- AnimationStorage.cs
- Win32Native.cs
- BaseValidator.cs
- CodeEntryPointMethod.cs
- LinkedResource.cs
- WebPartEditorApplyVerb.cs
- HashRepartitionEnumerator.cs
- GenericRootAutomationPeer.cs
- StrongNameIdentityPermission.cs
- GlyphRunDrawing.cs
- ZoneLinkButton.cs
- IsolatedStorageFilePermission.cs
- Light.cs
- ExpandSegment.cs
- HyperLink.cs
- WebEventCodes.cs
- DataGridViewLinkColumn.cs
- RuleInfoComparer.cs
- SecurityDocument.cs
- TextSelectionProcessor.cs
- XmlKeywords.cs
- TimeSpanValidatorAttribute.cs
- EditorAttribute.cs
- DefaultTextStore.cs
- MediaTimeline.cs
- CodeDirectiveCollection.cs
- WsatAdminException.cs
- IgnoreSectionHandler.cs
- PhoneCallDesigner.cs
- ObjectStateEntryDbDataRecord.cs
- CapabilitiesUse.cs
- ConfigurationStrings.cs
- XPathMessageFilter.cs
- HtmlInputReset.cs
- ZipIOFileItemStream.cs
- Overlapped.cs
- ZipIOExtraField.cs
- DeclaredTypeValidator.cs
- TextModifierScope.cs
- NativeMethods.cs
- Pts.cs
- CodeAttributeDeclaration.cs
- FileDialog.cs