Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SerialErrors.cs
- LoadGrammarCompletedEventArgs.cs
- UnsafeNativeMethods.cs
- recordstatefactory.cs
- JulianCalendar.cs
- RowSpanVector.cs
- ConfigsHelper.cs
- DesignerSerializationManager.cs
- VectorKeyFrameCollection.cs
- GeometryConverter.cs
- EncoderReplacementFallback.cs
- Size.cs
- AsynchronousChannelMergeEnumerator.cs
- PanelDesigner.cs
- DisplayNameAttribute.cs
- ObjectDataSource.cs
- DataTableCollection.cs
- TemplateBuilder.cs
- QueryOperationResponseOfT.cs
- CalculatedColumn.cs
- Group.cs
- FormsAuthenticationUserCollection.cs
- SqlDataReaderSmi.cs
- BackgroundWorker.cs
- StatusBar.cs
- PolicyLevel.cs
- StreamGeometry.cs
- Transform.cs
- InputProviderSite.cs
- SafeSecurityHandles.cs
- Font.cs
- DataGridParentRows.cs
- ConversionHelper.cs
- InkCanvas.cs
- FaultContractAttribute.cs
- SystemTcpStatistics.cs
- Graphics.cs
- SetStateDesigner.cs
- InstanceDataCollection.cs
- WindowsClientElement.cs
- ALinqExpressionVisitor.cs
- GridViewRowEventArgs.cs
- CompilerResults.cs
- LogAppendAsyncResult.cs
- ScrollViewer.cs
- WmlMobileTextWriter.cs
- OdbcReferenceCollection.cs
- TemplateBindingExpressionConverter.cs
- WindowsClientCredential.cs
- X509WindowsSecurityToken.cs
- Drawing.cs
- IPAddressCollection.cs
- DesignerActionVerbList.cs
- DefaultEvaluationContext.cs
- TableSectionStyle.cs
- StreamWriter.cs
- EventLogTraceListener.cs
- TypedTableBaseExtensions.cs
- FileVersionInfo.cs
- BoundPropertyEntry.cs
- TreeViewHitTestInfo.cs
- QilTernary.cs
- AdapterDictionary.cs
- StateChangeEvent.cs
- StyleBamlRecordReader.cs
- XmlCDATASection.cs
- WebPartManager.cs
- IntranetCredentialPolicy.cs
- Site.cs
- CodeExporter.cs
- ChannelServices.cs
- ContainerVisual.cs
- PropertyGridView.cs
- PropertyMapper.cs
- PointAnimationUsingPath.cs
- GridViewColumn.cs
- DataGridCaption.cs
- OutputScopeManager.cs
- CodeThrowExceptionStatement.cs
- Comparer.cs
- COAUTHINFO.cs
- VisualStyleElement.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- CodeCommentStatementCollection.cs
- SecurityPermission.cs
- ParseHttpDate.cs
- RightNameExpirationInfoPair.cs
- CaretElement.cs
- SQLDateTimeStorage.cs
- CallbackHandler.cs
- XmlHierarchicalDataSourceView.cs
- StackBuilderSink.cs
- MimePart.cs
- XmlValueConverter.cs
- OdbcParameterCollection.cs
- DocumentPageView.cs
- XmlFormatWriterGenerator.cs
- EdgeProfileValidation.cs
- FileVersionInfo.cs
- PageThemeParser.cs