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
- XmlCompatibilityReader.cs
- ProxyHelper.cs
- ManipulationStartingEventArgs.cs
- ExceptionHelpers.cs
- WrappedIUnknown.cs
- AnnotationHelper.cs
- PropertyValueChangedEvent.cs
- DistinctQueryOperator.cs
- SourceItem.cs
- PrimaryKeyTypeConverter.cs
- InvalidPropValue.cs
- BrushValueSerializer.cs
- CodeChecksumPragma.cs
- FilteredDataSetHelper.cs
- RedistVersionInfo.cs
- ObjectCloneHelper.cs
- MetadataArtifactLoaderCompositeFile.cs
- DataColumnMapping.cs
- BlobPersonalizationState.cs
- MetaColumn.cs
- AutomationEvent.cs
- ZipIOModeEnforcingStream.cs
- Image.cs
- UntrustedRecipientException.cs
- EventListenerClientSide.cs
- HScrollProperties.cs
- DataGridViewSelectedColumnCollection.cs
- HttpResponseHeader.cs
- DynamicQueryStringParameter.cs
- DocumentGridPage.cs
- DbExpressionVisitor_TResultType.cs
- WebPartConnectionsCloseVerb.cs
- ContractMapping.cs
- CanonicalFormWriter.cs
- ModuleConfigurationInfo.cs
- HttpCapabilitiesEvaluator.cs
- _HeaderInfo.cs
- XPathDocumentIterator.cs
- LabelDesigner.cs
- Attributes.cs
- COAUTHINFO.cs
- Storyboard.cs
- HtmlControl.cs
- SecurityChannelListener.cs
- QualificationDataItem.cs
- RoutingBehavior.cs
- EntityContainerEmitter.cs
- DataControlPagerLinkButton.cs
- TemplatedWizardStep.cs
- ConnectionInterfaceCollection.cs
- EventRouteFactory.cs
- CaseInsensitiveHashCodeProvider.cs
- BitmapEffectGroup.cs
- DataColumnPropertyDescriptor.cs
- FutureFactory.cs
- DataGridSortCommandEventArgs.cs
- ListContractAdapter.cs
- TabControlCancelEvent.cs
- ZipIOFileItemStream.cs
- AppDomainAttributes.cs
- LoginUtil.cs
- PrefixQName.cs
- DataGridViewColumnEventArgs.cs
- ProcessManager.cs
- CalendarTable.cs
- SqlCacheDependencyDatabase.cs
- QueryStringParameter.cs
- FrameDimension.cs
- FacetValueContainer.cs
- FtpWebResponse.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- PersonalizationProvider.cs
- FilterableAttribute.cs
- StorageMappingFragment.cs
- CreateUserWizard.cs
- GenerateHelper.cs
- FacetValueContainer.cs
- XPathNodeList.cs
- StringSource.cs
- BufferModesCollection.cs
- TreeNodeCollection.cs
- List.cs
- PtsCache.cs
- SoapHeaderAttribute.cs
- SharedHttpTransportManager.cs
- RTLAwareMessageBox.cs
- WindowsAuthenticationModule.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- TypeDelegator.cs
- GroupLabel.cs
- RootBuilder.cs
- FontInfo.cs
- InsufficientExecutionStackException.cs
- XmlSortKeyAccumulator.cs
- XsdDataContractExporter.cs
- SaveRecipientRequest.cs
- RootDesignerSerializerAttribute.cs
- DictationGrammar.cs
- IdentitySection.cs
- HttpHandlerAction.cs