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
- TiffBitmapEncoder.cs
- IndentTextWriter.cs
- DbDataReader.cs
- MergePropertyDescriptor.cs
- TypeToken.cs
- QueryAccessibilityHelpEvent.cs
- SolidBrush.cs
- XDRSchema.cs
- IdSpace.cs
- HttpVersion.cs
- ChangeProcessor.cs
- SqlNotificationEventArgs.cs
- SapiGrammar.cs
- RemotingServices.cs
- CaseCqlBlock.cs
- HttpConfigurationContext.cs
- MetadataSet.cs
- QueuePathDialog.cs
- CompoundFileReference.cs
- DesignerGenericWebPart.cs
- PointLight.cs
- Span.cs
- AvTraceFormat.cs
- SqlDataSourceFilteringEventArgs.cs
- UrlMappingCollection.cs
- ThumbButtonInfoCollection.cs
- SafeLibraryHandle.cs
- ImageList.cs
- DivideByZeroException.cs
- EntitySetDataBindingList.cs
- ReadOnlyTernaryTree.cs
- DesignerActionPropertyItem.cs
- OpenTypeLayoutCache.cs
- GeometryCombineModeValidation.cs
- WindowHideOrCloseTracker.cs
- Bitmap.cs
- Inflater.cs
- PolicyException.cs
- AttributeCollection.cs
- ExpressionCopier.cs
- Lookup.cs
- BaseTemplateBuildProvider.cs
- NamespaceEmitter.cs
- NavigatorInput.cs
- KeyValuePairs.cs
- OdbcHandle.cs
- ButtonRenderer.cs
- TableLayoutRowStyleCollection.cs
- Scripts.cs
- CompositeFontParser.cs
- LinkUtilities.cs
- DbProviderFactories.cs
- BamlTreeMap.cs
- Int32RectConverter.cs
- ReturnEventArgs.cs
- ToolStripPanel.cs
- TemplatedEditableDesignerRegion.cs
- PointAnimation.cs
- ISAPIRuntime.cs
- PtsHelper.cs
- ToolStripSeparatorRenderEventArgs.cs
- OdbcCommandBuilder.cs
- FlatButtonAppearance.cs
- DataBoundControlParameterTarget.cs
- ImpersonateTokenRef.cs
- HostVisual.cs
- CodeCompileUnit.cs
- TableLayoutPanel.cs
- ProcessInfo.cs
- DataMisalignedException.cs
- MatrixKeyFrameCollection.cs
- ClientRuntimeConfig.cs
- DependencyPropertyChangedEventArgs.cs
- RectangleHotSpot.cs
- DayRenderEvent.cs
- ConcurrentDictionary.cs
- TypedReference.cs
- TextEditorLists.cs
- DataGridRowClipboardEventArgs.cs
- PopupControlService.cs
- ByteViewer.cs
- DataGridViewSelectedCellCollection.cs
- HtmlInputControl.cs
- WeakReadOnlyCollection.cs
- SqlDataSourceFilteringEventArgs.cs
- SqlCommandBuilder.cs
- ControlAdapter.cs
- SecurityKeyIdentifier.cs
- SignedXml.cs
- PropertyNames.cs
- DoubleAnimationClockResource.cs
- SimpleFieldTemplateFactory.cs
- SectionInformation.cs
- WindowHelperService.cs
- XpsFilter.cs
- IdleTimeoutMonitor.cs
- TaskFormBase.cs
- DbSource.cs
- Wizard.cs
- UInt16Storage.cs