Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / DataKeyPropertyAttribute.cs / 1305376 / DataKeyPropertyAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; using System.Web.Util; using System.Diagnostics.CodeAnalysis; [AttributeUsage(AttributeTargets.Class)] public sealed class DataKeyPropertyAttribute : Attribute { private readonly string _name; public DataKeyPropertyAttribute(string name) { _name = name; } public string Name { get { return _name; } } [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] public override bool Equals(object obj) { DataKeyPropertyAttribute other = obj as DataKeyPropertyAttribute; if (other != null) { return String.Equals(_name, other.Name, StringComparison.Ordinal); } return false; } [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] public override int GetHashCode() { return (Name != null) ? Name.GetHashCode() : 0; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyReferenceExtension.cs
- UniqueSet.cs
- CustomAttributeBuilder.cs
- MetaModel.cs
- ExternalCalls.cs
- BindingValueChangedEventArgs.cs
- WebPartVerb.cs
- ChangeProcessor.cs
- Container.cs
- RegexGroupCollection.cs
- EdmToObjectNamespaceMap.cs
- DescendentsWalker.cs
- ToolStripPanelRow.cs
- TextEffectResolver.cs
- InvalidOperationException.cs
- OlePropertyStructs.cs
- ServiceDescription.cs
- DbParameterCollectionHelper.cs
- SR.cs
- SamlConstants.cs
- StorageFunctionMapping.cs
- ModelPerspective.cs
- Int64.cs
- CopyOfAction.cs
- UIElementParaClient.cs
- Splitter.cs
- MimeReflector.cs
- RegexStringValidatorAttribute.cs
- ConnectionStringSettings.cs
- URLAttribute.cs
- Variable.cs
- DeferredElementTreeState.cs
- FreeFormDesigner.cs
- QuadraticBezierSegment.cs
- SchemaImporterExtensionElementCollection.cs
- AssemblyBuilder.cs
- AccessibleObject.cs
- SecuritySessionFilter.cs
- TypeBinaryExpression.cs
- ErrorFormatter.cs
- VBCodeProvider.cs
- CapabilitiesRule.cs
- HttpRequestWrapper.cs
- QueryExpr.cs
- Frame.cs
- ClickablePoint.cs
- ClientSideProviderDescription.cs
- KeyNotFoundException.cs
- LayoutEvent.cs
- Graphics.cs
- StyleTypedPropertyAttribute.cs
- AnnotationComponentChooser.cs
- UIElementAutomationPeer.cs
- Win32SafeHandles.cs
- Activator.cs
- Hashtable.cs
- BindingManagerDataErrorEventArgs.cs
- DesignTimeTemplateParser.cs
- ColorConvertedBitmapExtension.cs
- MatrixAnimationUsingKeyFrames.cs
- ADMembershipUser.cs
- InputProcessorProfiles.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- DetailsViewPagerRow.cs
- DocumentXmlWriter.cs
- AggregateException.cs
- ProfileServiceManager.cs
- PackUriHelper.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- EntityRecordInfo.cs
- Property.cs
- CreateRefExpr.cs
- ResourceExpressionBuilder.cs
- TreeView.cs
- ToolStripCollectionEditor.cs
- QilChoice.cs
- ConfigurationManagerHelperFactory.cs
- DataServiceHostFactory.cs
- CodeAttributeDeclarationCollection.cs
- TranslateTransform.cs
- ToolStripContentPanelDesigner.cs
- InternalDispatchObject.cs
- SchemaSetCompiler.cs
- documentsequencetextview.cs
- TabItemAutomationPeer.cs
- SourceElementsCollection.cs
- WebPartDeleteVerb.cs
- SchemaCompiler.cs
- LineInfo.cs
- LinkTarget.cs
- GridItem.cs
- UserControlCodeDomTreeGenerator.cs
- BlurBitmapEffect.cs
- FileNameEditor.cs
- FileDialog_Vista.cs
- CursorConverter.cs
- WebReference.cs
- StyleSelector.cs
- UpdateManifestForBrowserApplication.cs
- WindowsListViewItemStartMenu.cs