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
- CLRBindingWorker.cs
- EventEntry.cs
- CurrencyWrapper.cs
- WindowsGraphics.cs
- MessageLoggingElement.cs
- GroupedContextMenuStrip.cs
- Debug.cs
- RichTextBoxAutomationPeer.cs
- SqlTriggerAttribute.cs
- Point3DAnimation.cs
- PersonalizableAttribute.cs
- CallbackWrapper.cs
- AutomationPattern.cs
- CodeCommentStatementCollection.cs
- PersonalizationStateInfo.cs
- ToolStripContentPanelRenderEventArgs.cs
- FunctionParameter.cs
- ADConnectionHelper.cs
- PhotoPrintingIntent.cs
- ApplicationSecurityManager.cs
- ImageDrawing.cs
- VisualStyleInformation.cs
- X509PeerCertificateElement.cs
- Point3DIndependentAnimationStorage.cs
- TypeConstant.cs
- AliasExpr.cs
- Transform3DGroup.cs
- DesignerActionItemCollection.cs
- XmlComplianceUtil.cs
- SafeUserTokenHandle.cs
- DataAdapter.cs
- DocumentViewerAutomationPeer.cs
- HostingEnvironmentException.cs
- CmsUtils.cs
- ConcurrentStack.cs
- _AuthenticationState.cs
- PingOptions.cs
- ToolStripOverflowButton.cs
- SqlBuffer.cs
- ProfessionalColors.cs
- HtmlInputRadioButton.cs
- ExtensionDataReader.cs
- RepeaterItem.cs
- RijndaelManagedTransform.cs
- IRCollection.cs
- ScriptBehaviorDescriptor.cs
- DispatcherSynchronizationContext.cs
- SerializationInfoEnumerator.cs
- SpeechDetectedEventArgs.cs
- _UriTypeConverter.cs
- Latin1Encoding.cs
- WebServiceEnumData.cs
- InfoCardTrace.cs
- Predicate.cs
- Int32Collection.cs
- XmlWrappingReader.cs
- MarshalByRefObject.cs
- SafeNativeMethods.cs
- DataBoundControlAdapter.cs
- IsolatedStorageFileStream.cs
- PromptStyle.cs
- CollectionBuilder.cs
- LocatorBase.cs
- SecurityContext.cs
- XamlTypeMapper.cs
- TdsParser.cs
- CriticalFinalizerObject.cs
- SystemResources.cs
- TableProviderWrapper.cs
- RawStylusSystemGestureInputReport.cs
- Button.cs
- DataTrigger.cs
- DurationConverter.cs
- GridViewColumn.cs
- ScrollItemPattern.cs
- HuffCodec.cs
- DesignerDataView.cs
- HwndAppCommandInputProvider.cs
- DbParameterCollectionHelper.cs
- AxisAngleRotation3D.cs
- MarkupCompilePass2.cs
- PowerStatus.cs
- OleServicesContext.cs
- Page.cs
- ColumnMapVisitor.cs
- GenericPrincipal.cs
- ObservableDictionary.cs
- SQLGuidStorage.cs
- SmiMetaDataProperty.cs
- InputScopeAttribute.cs
- HtmlSelect.cs
- GridViewEditEventArgs.cs
- CompoundFileDeflateTransform.cs
- GraphicsPath.cs
- DiscreteKeyFrames.cs
- SrgsOneOf.cs
- XmlHierarchicalDataSourceView.cs
- UnmanagedMarshal.cs
- FreezableCollection.cs
- Variable.cs