Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / DataObjectMethodAttribute.cs / 1 / DataObjectMethodAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Method)] public sealed class DataObjectMethodAttribute : Attribute { private bool _isDefault; private DataObjectMethodType _methodType; public DataObjectMethodAttribute(DataObjectMethodType methodType) : this(methodType, false) { } public DataObjectMethodAttribute(DataObjectMethodType methodType, bool isDefault) { _methodType = methodType; _isDefault = isDefault; } public bool IsDefault { get { return _isDefault; } } public DataObjectMethodType MethodType { get { return _methodType; } } ///public override bool Equals(object obj) { if (obj == this) { return true; } DataObjectMethodAttribute other = obj as DataObjectMethodAttribute; return (other != null) && (other.MethodType == MethodType) && (other.IsDefault == IsDefault); } /// public override int GetHashCode() { return ((int)_methodType).GetHashCode() ^ _isDefault.GetHashCode(); } /// public override bool Match(object obj) { if (obj == this) { return true; } DataObjectMethodAttribute other = obj as DataObjectMethodAttribute; return (other != null) && (other.MethodType == MethodType); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TemplateControl.cs
- SchemaInfo.cs
- OdbcHandle.cs
- ObjectQuery.cs
- AliasedSlot.cs
- CompoundFileStorageReference.cs
- Line.cs
- StoreItemCollection.cs
- Visual.cs
- DataGridViewRowsRemovedEventArgs.cs
- WebPartConnectionsConfigureVerb.cs
- DynamicArgumentDesigner.xaml.cs
- ProgressPage.cs
- CodeSubDirectoriesCollection.cs
- Environment.cs
- MetadataPropertyCollection.cs
- FixedSOMTextRun.cs
- ObjectQueryProvider.cs
- JsonReader.cs
- TrustSection.cs
- Ipv6Element.cs
- MemberProjectedSlot.cs
- Exception.cs
- PerformanceCountersElement.cs
- TypeBrowserDialog.cs
- SoapIgnoreAttribute.cs
- Ref.cs
- PropertyKey.cs
- Baml2006Reader.cs
- CompositeActivityCodeGenerator.cs
- XmlSchemaExporter.cs
- wgx_exports.cs
- StringPropertyBuilder.cs
- ExpressionBuilderCollection.cs
- ResolveNameEventArgs.cs
- SmtpTransport.cs
- RsaKeyIdentifierClause.cs
- CodeDesigner.cs
- _SslState.cs
- XPathItem.cs
- HttpPostedFile.cs
- Vector3DAnimation.cs
- WebPartAddingEventArgs.cs
- DataGridViewBindingCompleteEventArgs.cs
- PointConverter.cs
- ToolStripSettings.cs
- DataListItemEventArgs.cs
- HostingEnvironmentException.cs
- NonBatchDirectoryCompiler.cs
- GeneralTransformCollection.cs
- CodeSnippetExpression.cs
- ManagedIStream.cs
- RecognizerInfo.cs
- StringInfo.cs
- MILUtilities.cs
- HuffModule.cs
- MSHTMLHostUtil.cs
- SByte.cs
- TdsEnums.cs
- MetadataResolver.cs
- AssertHelper.cs
- AttributeTableBuilder.cs
- CommandHelper.cs
- HttpDictionary.cs
- CollectionBuilder.cs
- WebPartZone.cs
- ContentOperations.cs
- RightsManagementUser.cs
- WindowPattern.cs
- Shared.cs
- FastEncoder.cs
- HandlerWithFactory.cs
- InputScopeManager.cs
- CompositeScriptReference.cs
- IntegerFacetDescriptionElement.cs
- DiscardableAttribute.cs
- HybridDictionary.cs
- TypedColumnHandler.cs
- CodeCommentStatement.cs
- assertwrapper.cs
- X509PeerCertificateElement.cs
- _SSPIWrapper.cs
- CustomBindingElement.cs
- PenThreadWorker.cs
- SqlSelectClauseBuilder.cs
- LocalizableAttribute.cs
- SpotLight.cs
- externdll.cs
- CachingHintValidation.cs
- DocumentXPathNavigator.cs
- NamespaceQuery.cs
- ComNativeDescriptor.cs
- UnsafeNativeMethods.cs
- Function.cs
- PlanCompiler.cs
- FSWPathEditor.cs
- HMACRIPEMD160.cs
- XmlConverter.cs
- SchemaImporterExtension.cs
- Behavior.cs