Code:
/ DotNET / DotNET / 8.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
- DynamicRendererThreadManager.cs
- FrameworkContentElement.cs
- UnsafeNetInfoNativeMethods.cs
- TypeEnumerableViewSchema.cs
- TrustLevelCollection.cs
- AsymmetricKeyExchangeFormatter.cs
- PhysicalAddress.cs
- DataRowView.cs
- CounterSample.cs
- StringExpressionSet.cs
- TypographyProperties.cs
- Span.cs
- TimelineCollection.cs
- PasswordBox.cs
- TextServicesCompartmentEventSink.cs
- WebMessageEncodingBindingElement.cs
- BindingExpressionUncommonField.cs
- SizeFConverter.cs
- Subtract.cs
- MessagePropertyFilter.cs
- RuntimeConfig.cs
- StoreItemCollection.cs
- TextParagraphProperties.cs
- InputMethodStateTypeInfo.cs
- ElementFactory.cs
- PublishLicense.cs
- SchemaTableColumn.cs
- ButtonAutomationPeer.cs
- DetailsViewDeletedEventArgs.cs
- SecurityDocument.cs
- PrintDialogDesigner.cs
- ProviderSettings.cs
- GenericWebPart.cs
- ListViewGroup.cs
- SmtpNtlmAuthenticationModule.cs
- EventSource.cs
- CheckBoxList.cs
- PatternMatchRules.cs
- PageThemeBuildProvider.cs
- diagnosticsswitches.cs
- SiteOfOriginContainer.cs
- SqlDataSourceEnumerator.cs
- BindingMemberInfo.cs
- DataControlButton.cs
- CmsInterop.cs
- SecurityUtils.cs
- OracleParameterCollection.cs
- CopyAttributesAction.cs
- ObjectDataSourceDesigner.cs
- DomainConstraint.cs
- StrongName.cs
- MonthChangedEventArgs.cs
- SqlDataSourceCache.cs
- DomainConstraint.cs
- XmlComment.cs
- BufferBuilder.cs
- EntityDataSourceContainerNameItem.cs
- ProfileSettings.cs
- securestring.cs
- SortedSet.cs
- SystemNetworkInterface.cs
- RealizationContext.cs
- DrawingBrush.cs
- BitVector32.cs
- ApplicationTrust.cs
- DesignerHost.cs
- SimpleHandlerBuildProvider.cs
- SemanticResolver.cs
- ClientConfigurationHost.cs
- _KerberosClient.cs
- HierarchicalDataBoundControlAdapter.cs
- StringFreezingAttribute.cs
- HtmlElement.cs
- CodeVariableReferenceExpression.cs
- TypeDescriptor.cs
- TextParagraphView.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ListParaClient.cs
- ElementUtil.cs
- TableCellCollection.cs
- SubtreeProcessor.cs
- CatalogPart.cs
- Graphics.cs
- EventsTab.cs
- PersonalizationStateInfo.cs
- BroadcastEventHelper.cs
- NeutralResourcesLanguageAttribute.cs
- ValidationError.cs
- ExceptionCollection.cs
- HttpStreamFormatter.cs
- AsymmetricSecurityProtocol.cs
- ExtendedPropertyDescriptor.cs
- FragmentQueryKB.cs
- ListViewDeleteEventArgs.cs
- Msmq4PoisonHandler.cs
- AgileSafeNativeMemoryHandle.cs
- SiteMapNodeItemEventArgs.cs
- SamlEvidence.cs
- MultipleViewPatternIdentifiers.cs
- DesignerRegion.cs