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
- ColumnHeader.cs
- CategoryGridEntry.cs
- dtdvalidator.cs
- FormattedTextSymbols.cs
- ModifiableIteratorCollection.cs
- Queue.cs
- CodeGenerator.cs
- PackagePart.cs
- PowerModeChangedEventArgs.cs
- entitydatasourceentitysetnameconverter.cs
- Effect.cs
- SerializationEventsCache.cs
- DateTimeValueSerializerContext.cs
- WorkflowStateRollbackService.cs
- Assembly.cs
- DataControlImageButton.cs
- DesignerAutoFormat.cs
- _SslState.cs
- _SpnDictionary.cs
- AnnotationService.cs
- FontEditor.cs
- SapiAttributeParser.cs
- TextAnchor.cs
- PersianCalendar.cs
- InputReportEventArgs.cs
- OperationDescriptionCollection.cs
- DesignBindingPropertyDescriptor.cs
- PageTheme.cs
- RuleSettings.cs
- InternalsVisibleToAttribute.cs
- ReadOnlyMetadataCollection.cs
- FolderBrowserDialog.cs
- ReadOnlyNameValueCollection.cs
- TextWriterTraceListener.cs
- SQLInt64.cs
- CursorEditor.cs
- ComponentDispatcherThread.cs
- IdentifierService.cs
- DataGridViewButtonCell.cs
- CompilerInfo.cs
- WebPartConnectionsCloseVerb.cs
- Mappings.cs
- Vector3D.cs
- ExceptionHandlersDesigner.cs
- SafeFileMappingHandle.cs
- DataTablePropertyDescriptor.cs
- MarkupCompilePass2.cs
- _ConnectionGroup.cs
- StreamGeometry.cs
- XsltFunctions.cs
- ErrorWebPart.cs
- GraphicsContainer.cs
- ComponentResourceKeyConverter.cs
- InProcStateClientManager.cs
- _AutoWebProxyScriptWrapper.cs
- COM2IProvidePropertyBuilderHandler.cs
- UnionCodeGroup.cs
- ExportOptions.cs
- SiteMapProvider.cs
- XmlQualifiedNameTest.cs
- IndentedTextWriter.cs
- UserControlBuildProvider.cs
- PolyBezierSegment.cs
- Debug.cs
- COM2EnumConverter.cs
- FileStream.cs
- RelatedCurrencyManager.cs
- ComNativeDescriptor.cs
- UrlPath.cs
- EdmEntityTypeAttribute.cs
- InstancePersistenceCommandException.cs
- DataPagerField.cs
- SelectionItemProviderWrapper.cs
- Label.cs
- TableLayoutStyleCollection.cs
- TableLayout.cs
- UserMapPath.cs
- XmlSchemaRedefine.cs
- GradientStop.cs
- SqlBuilder.cs
- EventListenerClientSide.cs
- DetailsViewModeEventArgs.cs
- EditorZoneBase.cs
- GlobalAllocSafeHandle.cs
- PersistenceTypeAttribute.cs
- XmlAnyElementAttributes.cs
- CultureNotFoundException.cs
- WebConvert.cs
- XmlReflectionImporter.cs
- Match.cs
- TransportManager.cs
- XmlSerializer.cs
- FragmentQueryProcessor.cs
- ScrollContentPresenter.cs
- DropDownButton.cs
- LocalServiceSecuritySettings.cs
- Localizer.cs
- FrameworkElement.cs
- EntityReference.cs
- DispatcherTimer.cs