Code:
/ DotNET / DotNET / 8.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
- NameScopePropertyAttribute.cs
- QilFunction.cs
- DataGridViewLinkColumn.cs
- Encoder.cs
- WindowsSolidBrush.cs
- ResourceSetExpression.cs
- DiagnosticStrings.cs
- FixedTextPointer.cs
- NotImplementedException.cs
- XmlNavigatorStack.cs
- SmiEventStream.cs
- StateMachine.cs
- MessageContractImporter.cs
- MetadataStore.cs
- AndAlso.cs
- FilterElement.cs
- ExpressionPrinter.cs
- HeaderUtility.cs
- ResolveResponseInfo.cs
- AttachmentCollection.cs
- WindowsTooltip.cs
- PublishLicense.cs
- EntityTemplateUserControl.cs
- PeerNearMe.cs
- Lookup.cs
- PenThreadWorker.cs
- StreamHelper.cs
- IODescriptionAttribute.cs
- AggregatePushdown.cs
- EventArgs.cs
- HighlightComponent.cs
- NativeMethodsCLR.cs
- ServicesUtilities.cs
- SupportsEventValidationAttribute.cs
- PtsHelper.cs
- TabletDevice.cs
- CapacityStreamGeometryContext.cs
- StringBlob.cs
- QualifiedCellIdBoolean.cs
- DomainUpDown.cs
- HasCopySemanticsAttribute.cs
- RewritingSimplifier.cs
- SiteMapNodeItem.cs
- safelink.cs
- GenericRootAutomationPeer.cs
- XmlSchemaType.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DataGridDesigner.cs
- FieldAccessException.cs
- SystemEvents.cs
- AppearanceEditorPart.cs
- SoundPlayerAction.cs
- ActivityCodeGenerator.cs
- AuthorizationSection.cs
- State.cs
- FixedPageAutomationPeer.cs
- TextEmbeddedObject.cs
- XmlIlVisitor.cs
- AttributeProviderAttribute.cs
- cookieexception.cs
- Label.cs
- errorpatternmatcher.cs
- DayRenderEvent.cs
- Workspace.cs
- Properties.cs
- TriState.cs
- Types.cs
- HyperlinkAutomationPeer.cs
- SoapAttributes.cs
- ToolboxItemLoader.cs
- DelayDesigner.cs
- DetailsViewCommandEventArgs.cs
- CharStorage.cs
- Binding.cs
- ExtensionCollection.cs
- SchemaDeclBase.cs
- PresentationAppDomainManager.cs
- HostingEnvironment.cs
- WebEventTraceProvider.cs
- EntityDataSourceWrapper.cs
- TypeSystemHelpers.cs
- WindowsRichEdit.cs
- ComAdminInterfaces.cs
- ControlIdConverter.cs
- safelink.cs
- PackageFilter.cs
- BoundPropertyEntry.cs
- RuntimeHelpers.cs
- SqlDataSourceCache.cs
- WebPartTransformer.cs
- ObjectStateFormatter.cs
- EventLog.cs
- AttributeSetAction.cs
- SqlInternalConnectionSmi.cs
- ErrorFormatterPage.cs
- DynamicILGenerator.cs
- RegexCharClass.cs
- FormViewPageEventArgs.cs
- TrackingLocation.cs
- EventLogWatcher.cs