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
- ExternalException.cs
- RandomNumberGenerator.cs
- PersonalizationAdministration.cs
- HwndMouseInputProvider.cs
- _NegoState.cs
- Panel.cs
- safePerfProviderHandle.cs
- Int16Converter.cs
- CertificateManager.cs
- AxisAngleRotation3D.cs
- DockProviderWrapper.cs
- MenuItemCollection.cs
- ResourcesChangeInfo.cs
- ColorPalette.cs
- TypeUsage.cs
- documentsequencetextview.cs
- _TimerThread.cs
- Int64AnimationUsingKeyFrames.cs
- HtmlLink.cs
- MessageSecurityTokenVersion.cs
- EntityDescriptor.cs
- TypedReference.cs
- SystemResourceKey.cs
- SiteOfOriginContainer.cs
- OdbcFactory.cs
- ImpersonateTokenRef.cs
- CategoryNameCollection.cs
- _NegoStream.cs
- WeakHashtable.cs
- CodeGenerator.cs
- ReferenceEqualityComparer.cs
- WebPartZoneCollection.cs
- ExpressionBuilder.cs
- ImageAttributes.cs
- ipaddressinformationcollection.cs
- sqlinternaltransaction.cs
- AuthorizationSection.cs
- ConfigurationProperty.cs
- _LazyAsyncResult.cs
- SqlConnectionPoolProviderInfo.cs
- SymbolDocumentGenerator.cs
- PropertyItem.cs
- OrderedEnumerableRowCollection.cs
- DeclarationUpdate.cs
- WebPartCatalogCloseVerb.cs
- Panel.cs
- EntityDataSourceColumn.cs
- Tablet.cs
- ChangeNode.cs
- LineSegment.cs
- SettingsProperty.cs
- ItemsPanelTemplate.cs
- CalendarButton.cs
- WindowsRichEdit.cs
- RoutedEventConverter.cs
- CachedRequestParams.cs
- DataGridLengthConverter.cs
- SoapDocumentServiceAttribute.cs
- DecimalConverter.cs
- XmlText.cs
- ResourceCodeDomSerializer.cs
- DesignerProperties.cs
- RadioButtonStandardAdapter.cs
- Tablet.cs
- ComUdtElementCollection.cs
- BrowserCapabilitiesFactory.cs
- BigIntegerStorage.cs
- OpenFileDialog.cs
- DodSequenceMerge.cs
- PartialCachingControl.cs
- SpecialNameAttribute.cs
- ContextConfiguration.cs
- Location.cs
- nulltextnavigator.cs
- CompilerResults.cs
- PageStatePersister.cs
- XmlQueryRuntime.cs
- TagNameToTypeMapper.cs
- CodeAttributeArgument.cs
- UnknownWrapper.cs
- SingleAnimationUsingKeyFrames.cs
- ObjectReferenceStack.cs
- SQLDecimal.cs
- ShaderRenderModeValidation.cs
- XslTransform.cs
- DefaultAsyncDataDispatcher.cs
- Maps.cs
- BlurEffect.cs
- ServiceAuthorizationElement.cs
- HtmlTitle.cs
- RsaKeyIdentifierClause.cs
- BinHexEncoder.cs
- SamlSecurityTokenAuthenticator.cs
- ArraySegment.cs
- ProviderConnectionPointCollection.cs
- DbConnectionPoolIdentity.cs
- DataGridViewCellParsingEventArgs.cs
- UserCancellationException.cs
- CultureTable.cs
- XamlStream.cs