Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- XmlElementCollection.cs
- RNGCryptoServiceProvider.cs
- MatrixValueSerializer.cs
- MsmqEncryptionAlgorithm.cs
- DocumentApplicationJournalEntry.cs
- SQLBinary.cs
- HwndHost.cs
- SHA512Managed.cs
- xmlsaver.cs
- RawKeyboardInputReport.cs
- DataGridViewToolTip.cs
- AspNetRouteServiceHttpHandler.cs
- TextEditorThreadLocalStore.cs
- XmlDataCollection.cs
- Drawing.cs
- TemplateControl.cs
- TreeNodeCollection.cs
- XmlNullResolver.cs
- UserControl.cs
- ListDataBindEventArgs.cs
- TemplateColumn.cs
- XPathConvert.cs
- XComponentModel.cs
- PolygonHotSpot.cs
- XmlDataProvider.cs
- TextLineResult.cs
- UnauthorizedWebPart.cs
- Byte.cs
- CodeGenerator.cs
- SendMailErrorEventArgs.cs
- ConnectionPointCookie.cs
- IISMapPath.cs
- QuaternionAnimationUsingKeyFrames.cs
- Util.cs
- HtmlInputPassword.cs
- Thumb.cs
- CodeSnippetCompileUnit.cs
- HierarchicalDataBoundControl.cs
- RegexCompilationInfo.cs
- WebSysDescriptionAttribute.cs
- ViewBase.cs
- ReaderOutput.cs
- documentsequencetextpointer.cs
- ResourcePart.cs
- RowToFieldTransformer.cs
- SchemaObjectWriter.cs
- XmlReflectionImporter.cs
- LassoSelectionBehavior.cs
- PointAnimationBase.cs
- BaseCodeDomTreeGenerator.cs
- PackageRelationshipSelector.cs
- DataTable.cs
- SqlHelper.cs
- DefinitionUpdate.cs
- CapacityStreamGeometryContext.cs
- Margins.cs
- HtmlTableCellCollection.cs
- DragEventArgs.cs
- CachedBitmap.cs
- CatalogPart.cs
- SqlTransaction.cs
- unitconverter.cs
- DeobfuscatingStream.cs
- MetadataArtifactLoaderComposite.cs
- SystemWebSectionGroup.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- PaintValueEventArgs.cs
- MethodMessage.cs
- List.cs
- Polygon.cs
- AxParameterData.cs
- GridViewColumnHeader.cs
- BooleanFacetDescriptionElement.cs
- ViewStateModeByIdAttribute.cs
- BaseResourcesBuildProvider.cs
- NamespaceEmitter.cs
- WebServiceHandler.cs
- SHA384.cs
- RowToFieldTransformer.cs
- DataSourceSelectArguments.cs
- OutputCacheProfile.cs
- DynamicObject.cs
- DBSchemaRow.cs
- FlowLayoutSettings.cs
- HtmlImage.cs
- PropertyManager.cs
- SerializationInfo.cs
- securestring.cs
- LinearGradientBrush.cs
- BindingSourceDesigner.cs
- OracleDateTime.cs
- MethodMessage.cs
- XmlTextReader.cs
- Missing.cs
- Quaternion.cs
- PcmConverter.cs
- DataSourceSelectArguments.cs
- XmlSchemaGroup.cs
- TypeExtension.cs
- IgnoreSectionHandler.cs