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
- OutKeywords.cs
- TypeSystem.cs
- ChildChangedEventArgs.cs
- StandardTransformFactory.cs
- LiteralTextParser.cs
- VisualStyleInformation.cs
- DelayedRegex.cs
- TextTrailingCharacterEllipsis.cs
- SqlBulkCopyColumnMappingCollection.cs
- DocumentApplicationJournalEntry.cs
- NonParentingControl.cs
- DataServiceHostFactory.cs
- KnownBoxes.cs
- CompressedStack.cs
- NamedPermissionSet.cs
- MembershipUser.cs
- MergeEnumerator.cs
- SpecularMaterial.cs
- COM2TypeInfoProcessor.cs
- TraceInternal.cs
- StatusBarItemAutomationPeer.cs
- GridSplitterAutomationPeer.cs
- shaperfactoryquerycachekey.cs
- DateTimeOffset.cs
- BuildResult.cs
- _Events.cs
- CellQuery.cs
- HelloOperation11AsyncResult.cs
- BaseContextMenu.cs
- StatusBarDesigner.cs
- TransformCollection.cs
- DocobjHost.cs
- ReadOnlyPropertyMetadata.cs
- parserscommon.cs
- FilterQuery.cs
- SqlDataSourceSummaryPanel.cs
- CoreSwitches.cs
- RefExpr.cs
- TransportSecurityProtocol.cs
- EntityDataSourceReferenceGroup.cs
- MailMessageEventArgs.cs
- validationstate.cs
- WindowsListViewItemCheckBox.cs
- UriSection.cs
- WebPartAddingEventArgs.cs
- DataGrid.cs
- TabItem.cs
- UrlAuthFailedErrorFormatter.cs
- WebSysDisplayNameAttribute.cs
- PropertyTab.cs
- ListBoxItemAutomationPeer.cs
- MultipleFilterMatchesException.cs
- XslCompiledTransform.cs
- DateTimeFormatInfo.cs
- SafeProcessHandle.cs
- InternalControlCollection.cs
- DataColumnMapping.cs
- CultureInfoConverter.cs
- XMLDiffLoader.cs
- ObservableDictionary.cs
- ProxyDataContractResolver.cs
- CodeGenerationManager.cs
- TerminatorSinks.cs
- MimeImporter.cs
- EdmValidator.cs
- tibetanshape.cs
- LockedAssemblyCache.cs
- Trigger.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- MdiWindowListStrip.cs
- EdmItemCollection.cs
- NegatedCellConstant.cs
- ColumnMapTranslator.cs
- ClipboardProcessor.cs
- DataTableNewRowEvent.cs
- ItemList.cs
- SetterBaseCollection.cs
- DisplayMemberTemplateSelector.cs
- DataGridViewToolTip.cs
- ValidatorCompatibilityHelper.cs
- Types.cs
- WrappedOptions.cs
- ResolveMatches11.cs
- InvalidWMPVersionException.cs
- HostSecurityManager.cs
- FilterQueryOptionExpression.cs
- IFlowDocumentViewer.cs
- RichTextBox.cs
- SmtpReplyReaderFactory.cs
- QilBinary.cs
- BodyWriter.cs
- BinaryObjectReader.cs
- XamlLoadErrorInfo.cs
- selecteditemcollection.cs
- TreeNodeCollectionEditorDialog.cs
- Mutex.cs
- PanelStyle.cs
- TrueReadOnlyCollection.cs
- GlobalizationSection.cs
- SelectionRange.cs