Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / DataObjectAttribute.cs / 1 / 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)); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ArcSegment.cs
- XmlName.cs
- LocatorManager.cs
- CodeSnippetStatement.cs
- DbConnectionInternal.cs
- DictionaryManager.cs
- EditingMode.cs
- WebCategoryAttribute.cs
- LocalBuilder.cs
- FullTrustAssemblyCollection.cs
- ToolStripPanelRow.cs
- ResourcesBuildProvider.cs
- EmptyControlCollection.cs
- ResourceDictionary.cs
- AuthenticatedStream.cs
- RawUIStateInputReport.cs
- TextAction.cs
- MutexSecurity.cs
- GeneratedView.cs
- XmlIlVisitor.cs
- DataGridTableCollection.cs
- PropertyTabAttribute.cs
- ChainOfDependencies.cs
- RectAnimation.cs
- MappingSource.cs
- WpfPayload.cs
- VersionPair.cs
- Ref.cs
- RepeatButton.cs
- DependencyPropertyKind.cs
- pingexception.cs
- TreeNodeSelectionProcessor.cs
- HierarchicalDataBoundControl.cs
- BindingSource.cs
- MimeImporter.cs
- SByte.cs
- ChtmlPhoneCallAdapter.cs
- ImagingCache.cs
- Size.cs
- SafePEFileHandle.cs
- InstanceData.cs
- PlanCompiler.cs
- Encoding.cs
- CollectionCodeDomSerializer.cs
- ArgumentNullException.cs
- XmlnsCompatibleWithAttribute.cs
- EventLogEntry.cs
- HMACMD5.cs
- WindowsToolbar.cs
- PointHitTestParameters.cs
- SqlBuffer.cs
- SortedList.cs
- WaitHandleCannotBeOpenedException.cs
- FixedTextSelectionProcessor.cs
- TreeNodeSelectionProcessor.cs
- RijndaelManaged.cs
- CharAnimationBase.cs
- TextFindEngine.cs
- Double.cs
- TransactionsSectionGroup.cs
- AssemblyInfo.cs
- ToolboxCategoryItems.cs
- DesignTimeVisibleAttribute.cs
- InputProcessorProfiles.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- HandlerBase.cs
- CapacityStreamGeometryContext.cs
- QueryStringParameter.cs
- Validator.cs
- ValidationHelpers.cs
- SecurityState.cs
- ListViewItem.cs
- Substitution.cs
- SessionSwitchEventArgs.cs
- PackagePartCollection.cs
- OdbcEnvironment.cs
- Main.cs
- DataGridViewButtonCell.cs
- QuaternionRotation3D.cs
- SmiGettersStream.cs
- DrawListViewSubItemEventArgs.cs
- CustomError.cs
- GlyphCollection.cs
- DataTableReaderListener.cs
- APCustomTypeDescriptor.cs
- FormParameter.cs
- DeploymentExceptionMapper.cs
- DataIdProcessor.cs
- DbConnectionOptions.cs
- ColorConvertedBitmap.cs
- SvcMapFileSerializer.cs
- Size3D.cs
- LiteralControl.cs
- DocumentReference.cs
- MailFileEditor.cs
- CorrelationManager.cs
- SafeProcessHandle.cs
- CryptoHandle.cs
- CodeExporter.cs
- AssociationProvider.cs