Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / DataObjectAttribute.cs / 1305376 / DataObjectAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public sealed class DataObjectAttribute : Attribute { public static readonly DataObjectAttribute DataObject = new DataObjectAttribute(true); public static readonly DataObjectAttribute NonDataObject = new DataObjectAttribute(false); public static readonly DataObjectAttribute Default = NonDataObject; private bool _isDataObject; public DataObjectAttribute() : this(true) { } public DataObjectAttribute(bool isDataObject) { _isDataObject = isDataObject; } public bool IsDataObject { get { return _isDataObject; } } ///public override bool Equals(object obj) { if (obj == this) { return true; } DataObjectAttribute other = obj as DataObjectAttribute; return (other != null) && (other.IsDataObject == IsDataObject); } /// public override int GetHashCode() { return _isDataObject.GetHashCode(); } /// public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpContextServiceHost.cs
- MethodRental.cs
- EmptyEnumerator.cs
- QueryCacheKey.cs
- Triplet.cs
- Annotation.cs
- QilStrConcat.cs
- MultiByteCodec.cs
- Propagator.ExtentPlaceholderCreator.cs
- RetrieveVirtualItemEventArgs.cs
- CommandField.cs
- Expression.cs
- PagePropertiesChangingEventArgs.cs
- DataListItem.cs
- UnsafeNativeMethodsPenimc.cs
- ToolStripItemCollection.cs
- CachedFontFace.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- Block.cs
- DatePickerTextBox.cs
- NavigationWindow.cs
- ExpressionWriter.cs
- Underline.cs
- PartialCachingAttribute.cs
- SymbolTable.cs
- NamedPipeConnectionPool.cs
- DataGridItemCollection.cs
- ListControl.cs
- DocumentEventArgs.cs
- DXD.cs
- WebBrowser.cs
- DebugView.cs
- InheritanceService.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- Monitor.cs
- ListControl.cs
- ListViewGroupConverter.cs
- WindowsAuthenticationEventArgs.cs
- ActivityExecutionFilter.cs
- BamlTreeMap.cs
- MailWebEventProvider.cs
- WorkflowApplicationIdleEventArgs.cs
- SmiEventSink.cs
- DataGridSortCommandEventArgs.cs
- GregorianCalendarHelper.cs
- xmlfixedPageInfo.cs
- OperatorExpressions.cs
- messageonlyhwndwrapper.cs
- XamlInt32CollectionSerializer.cs
- MailMessageEventArgs.cs
- SamlSecurityTokenAuthenticator.cs
- LinkClickEvent.cs
- RequestCacheManager.cs
- HttpRequest.cs
- PaperSource.cs
- InvalidPrinterException.cs
- WindowsStartMenu.cs
- FileChangesMonitor.cs
- ImageField.cs
- SchemaImporterExtensionsSection.cs
- PropertyRecord.cs
- RootProfilePropertySettingsCollection.cs
- ColorMatrix.cs
- Version.cs
- RadialGradientBrush.cs
- UInt32.cs
- SqlWorkflowPersistenceService.cs
- ClonableStack.cs
- XmlUnspecifiedAttribute.cs
- DesignerDataStoredProcedure.cs
- CommandHelper.cs
- PolyBezierSegmentFigureLogic.cs
- XmlCharacterData.cs
- XmlSchemaAnnotated.cs
- RtfToken.cs
- ProtocolsConfiguration.cs
- Matrix3D.cs
- TextElement.cs
- xmlglyphRunInfo.cs
- DefaultParameterValueAttribute.cs
- EventSetter.cs
- InkCanvas.cs
- ProcessModelSection.cs
- DesignUtil.cs
- TextBox.cs
- ComponentChangingEvent.cs
- JournalNavigationScope.cs
- DataGridViewDataErrorEventArgs.cs
- BulletedListDesigner.cs
- RowParagraph.cs
- PageCache.cs
- ApplicationSecurityManager.cs
- ComboBox.cs
- AudioBase.cs
- HTMLTextWriter.cs
- ErrorRuntimeConfig.cs
- NameValuePair.cs
- figurelengthconverter.cs
- QueryRewriter.cs
- ExponentialEase.cs