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
- AlphabeticalEnumConverter.cs
- RootBuilder.cs
- ICspAsymmetricAlgorithm.cs
- DebugHandleTracker.cs
- TreeViewItem.cs
- wmiprovider.cs
- Utils.cs
- BamlTreeNode.cs
- PageBorderless.cs
- GridViewRow.cs
- HelpEvent.cs
- SizeConverter.cs
- EdmTypeAttribute.cs
- VirtualizingPanel.cs
- EdmEntityTypeAttribute.cs
- _OSSOCK.cs
- UICuesEvent.cs
- FormViewDeletedEventArgs.cs
- CodeExpressionStatement.cs
- LogicalExpr.cs
- DoubleLinkList.cs
- Pts.cs
- SystemSounds.cs
- XmlUtil.cs
- MethodBody.cs
- InstanceKey.cs
- TreeNodeClickEventArgs.cs
- PathData.cs
- HyperLink.cs
- UserMapPath.cs
- SspiSecurityTokenProvider.cs
- WindowsStatusBar.cs
- Directory.cs
- BindUriHelper.cs
- DataContractSerializer.cs
- DataColumnMappingCollection.cs
- SerialPinChanges.cs
- CellIdBoolean.cs
- DbConnectionInternal.cs
- ParserHooks.cs
- MonthCalendar.cs
- AnimatedTypeHelpers.cs
- TreeNodeBinding.cs
- BaseDataListComponentEditor.cs
- RuntimeWrappedException.cs
- HttpUnhandledOperationInvoker.cs
- ScriptManager.cs
- SafeHandles.cs
- CommonDialog.cs
- XslException.cs
- LocatorGroup.cs
- SqlDataSourceCommandEventArgs.cs
- DataGridViewUtilities.cs
- DataStreamFromComStream.cs
- InternalControlCollection.cs
- _CacheStreams.cs
- ProbeMatchesMessage11.cs
- ParallelTimeline.cs
- RawStylusInputCustomDataList.cs
- PageAsyncTask.cs
- ByeOperationCD1AsyncResult.cs
- HtmlInputRadioButton.cs
- XmlSchemaComplexContentExtension.cs
- ObjectHelper.cs
- FastPropertyAccessor.cs
- XmlQueryType.cs
- UnsafeNativeMethods.cs
- ImageButton.cs
- DBSchemaRow.cs
- Mapping.cs
- HScrollBar.cs
- EdmProviderManifest.cs
- ElementHostAutomationPeer.cs
- XmlExpressionDumper.cs
- FilePresentation.cs
- KeyEvent.cs
- SafeFileHandle.cs
- ConfigurationLocationCollection.cs
- CollectionChangedEventManager.cs
- ObjectDisposedException.cs
- CompilationUnit.cs
- InstanceNotReadyException.cs
- DataServiceQueryException.cs
- UriExt.cs
- StreamResourceInfo.cs
- PropertyRef.cs
- DetailsViewModeEventArgs.cs
- AppSettingsSection.cs
- CorrelationInitializer.cs
- OwnerDrawPropertyBag.cs
- Application.cs
- CodeVariableReferenceExpression.cs
- XmlNodeChangedEventArgs.cs
- WebPartEditorOkVerb.cs
- QilDataSource.cs
- documentsequencetextpointer.cs
- ExtensionQuery.cs
- RectConverter.cs
- CodeDefaultValueExpression.cs
- TemplatedWizardStep.cs