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
- UIElementCollection.cs
- OleAutBinder.cs
- Pair.cs
- _Connection.cs
- DefaultTextStore.cs
- DiscreteKeyFrames.cs
- ThemeableAttribute.cs
- SoapElementAttribute.cs
- BaseInfoTable.cs
- nulltextcontainer.cs
- RectAnimation.cs
- ConfigurationStrings.cs
- QilPatternFactory.cs
- SchemaElementDecl.cs
- ClonableStack.cs
- CodeMemberMethod.cs
- RefreshResponseInfo.cs
- CheckoutException.cs
- UriScheme.cs
- PageRequestManager.cs
- oledbconnectionstring.cs
- ValidatingPropertiesEventArgs.cs
- FixedSOMPage.cs
- EditorPartCollection.cs
- ScriptControl.cs
- InheritanceContextChangedEventManager.cs
- FolderLevelBuildProviderCollection.cs
- EventProviderWriter.cs
- ImageMap.cs
- ToolStripButton.cs
- MbpInfo.cs
- EntityDataSourceSelectingEventArgs.cs
- MsmqInputSessionChannel.cs
- FontEmbeddingManager.cs
- EasingKeyFrames.cs
- FieldBuilder.cs
- EntityModelSchemaGenerator.cs
- TableRow.cs
- TableItemPattern.cs
- WebPartConnectionsConfigureVerb.cs
- HtmlInputHidden.cs
- DataGridViewCellLinkedList.cs
- UInt32.cs
- CompilationRelaxations.cs
- WpfKnownTypeInvoker.cs
- RestHandlerFactory.cs
- XmlRawWriterWrapper.cs
- Column.cs
- XmlSyndicationContent.cs
- SqlTriggerAttribute.cs
- FontInfo.cs
- _WinHttpWebProxyDataBuilder.cs
- PropertyValueUIItem.cs
- MtomMessageEncodingBindingElement.cs
- SiteMapDataSource.cs
- tooltip.cs
- ComPlusServiceHost.cs
- KeyGestureConverter.cs
- OdbcRowUpdatingEvent.cs
- LogWriteRestartAreaState.cs
- BuildResult.cs
- ResourceSet.cs
- SqlCacheDependencyDatabaseCollection.cs
- GuidelineSet.cs
- DescendentsWalkerBase.cs
- SqlBooleanMismatchVisitor.cs
- ReflectionUtil.cs
- XmlSerializerSection.cs
- ObjectIDGenerator.cs
- AbandonedMutexException.cs
- SqlWebEventProvider.cs
- EmbeddedMailObject.cs
- QuaternionAnimationUsingKeyFrames.cs
- GeneratedContractType.cs
- WinFormsSpinner.cs
- SimpleTextLine.cs
- SystemFonts.cs
- TreeViewCancelEvent.cs
- DbParameterHelper.cs
- WebHttpBindingElement.cs
- WindowsNonControl.cs
- CultureMapper.cs
- LocalBuilder.cs
- FunctionUpdateCommand.cs
- ServiceModelEnumValidator.cs
- ItemContainerGenerator.cs
- ListBox.cs
- versioninfo.cs
- MergePropertyDescriptor.cs
- SourceSwitch.cs
- PopupControlService.cs
- FontWeight.cs
- WinInet.cs
- DocumentSequenceHighlightLayer.cs
- FrugalMap.cs
- DataColumnCollection.cs
- CompilerTypeWithParams.cs
- SqlCommandSet.cs
- CommandField.cs
- ScaleTransform.cs