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
- EdmTypeAttribute.cs
- IndexedString.cs
- SizeChangedEventArgs.cs
- SignedXml.cs
- MsmqIntegrationSecurityElement.cs
- TableLayoutStyle.cs
- CdpEqualityComparer.cs
- WebPartZone.cs
- documentsequencetextcontainer.cs
- CheckedPointers.cs
- HtmlDocument.cs
- ColumnResult.cs
- Soap12ProtocolReflector.cs
- LexicalChunk.cs
- PermissionRequestEvidence.cs
- SimpleMailWebEventProvider.cs
- WinEventWrap.cs
- TimersDescriptionAttribute.cs
- RemotingSurrogateSelector.cs
- LabelLiteral.cs
- FormViewDeleteEventArgs.cs
- __TransparentProxy.cs
- SqlEnums.cs
- ScriptResourceHandler.cs
- UdpChannelListener.cs
- FontDifferentiator.cs
- NegatedCellConstant.cs
- PackageRelationship.cs
- MatrixUtil.cs
- DuplexSecurityProtocolFactory.cs
- SubMenuStyle.cs
- MatrixStack.cs
- PersonalizationProviderCollection.cs
- DeferredReference.cs
- UnorderedHashRepartitionStream.cs
- DataControlCommands.cs
- DeviceContext2.cs
- CommonDialog.cs
- GridViewRowCollection.cs
- TimeEnumHelper.cs
- CreateBookmarkScope.cs
- ProxyGenerationError.cs
- controlskin.cs
- Soap12ProtocolImporter.cs
- ApplicationFileCodeDomTreeGenerator.cs
- FormCollection.cs
- ScalarOps.cs
- TemplateParser.cs
- GridViewDeletedEventArgs.cs
- ExceptionTrace.cs
- HandleScope.cs
- GeneralTransform.cs
- TextOutput.cs
- IISUnsafeMethods.cs
- x509utils.cs
- TableRow.cs
- WmlValidationSummaryAdapter.cs
- ProfileSection.cs
- XmlElementAttributes.cs
- AlphaSortedEnumConverter.cs
- InstanceStoreQueryResult.cs
- XmlIterators.cs
- HttpResponseWrapper.cs
- KeyValueSerializer.cs
- SecurityTokenAttachmentMode.cs
- LocalBuilder.cs
- SendMessageRecord.cs
- ReflectPropertyDescriptor.cs
- RowBinding.cs
- TemplateDefinition.cs
- ProfileBuildProvider.cs
- WmlPageAdapter.cs
- webclient.cs
- LongValidator.cs
- Point3D.cs
- SafeHGlobalHandleCritical.cs
- ScriptIgnoreAttribute.cs
- DesignConnectionCollection.cs
- StrokeSerializer.cs
- TextAdaptor.cs
- SecurityChannelFactory.cs
- SqlRewriteScalarSubqueries.cs
- SqlXmlStorage.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- HtmlTableCell.cs
- pingexception.cs
- HashHelper.cs
- SerializationTrace.cs
- ReadOnlyDictionary.cs
- SqlIdentifier.cs
- RenameRuleObjectDialog.cs
- DoubleStorage.cs
- OleServicesContext.cs
- SevenBitStream.cs
- AbsoluteQuery.cs
- HostedImpersonationContext.cs
- SafeNativeMethodsCLR.cs
- CommonDialog.cs
- BuiltInExpr.cs
- DataGridPagerStyle.cs