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
- Block.cs
- LinkTarget.cs
- SortableBindingList.cs
- Quad.cs
- RangeValuePattern.cs
- DocComment.cs
- UIntPtr.cs
- XmlWriter.cs
- ServiceBehaviorAttribute.cs
- TypeFieldSchema.cs
- SafeWaitHandle.cs
- EntitySqlException.cs
- BitmapEffectRenderDataResource.cs
- NamedPipeAppDomainProtocolHandler.cs
- WindowsFont.cs
- DataRelation.cs
- HttpHandlerActionCollection.cs
- InputBinding.cs
- EntityDataSourceChangedEventArgs.cs
- DataGridViewTopLeftHeaderCell.cs
- String.cs
- ClientScriptManager.cs
- AutomationPropertyInfo.cs
- AliasedSlot.cs
- FontStyleConverter.cs
- XamlInt32CollectionSerializer.cs
- DataGridViewCellEventArgs.cs
- LowerCaseStringConverter.cs
- TakeQueryOptionExpression.cs
- BindingMAnagerBase.cs
- MemberMaps.cs
- ConditionalAttribute.cs
- TraceListeners.cs
- HttpWebRequestElement.cs
- ValueCollectionParameterReader.cs
- TableRow.cs
- QilScopedVisitor.cs
- ToolStripContainerActionList.cs
- ByteStream.cs
- XPathException.cs
- LogEntryUtils.cs
- ContainerUtilities.cs
- DrawToolTipEventArgs.cs
- DataSpaceManager.cs
- ToolStripDesigner.cs
- Span.cs
- SqlCommandBuilder.cs
- ColorAnimationUsingKeyFrames.cs
- PrintingPermission.cs
- MetadataArtifactLoaderCompositeFile.cs
- WindowsStatusBar.cs
- OdbcEnvironmentHandle.cs
- TypeDefinition.cs
- RealProxy.cs
- DbProviderFactories.cs
- IItemContainerGenerator.cs
- ContainerActivationHelper.cs
- ISAPIRuntime.cs
- MimeFormatExtensions.cs
- Transform3DGroup.cs
- xml.cs
- EncryptedKeyIdentifierClause.cs
- RSAPKCS1SignatureDeformatter.cs
- WorkflowMarkupSerializationManager.cs
- NavigationProperty.cs
- ScrollViewer.cs
- NavigationFailedEventArgs.cs
- ContextActivityUtils.cs
- Setter.cs
- NodeLabelEditEvent.cs
- DEREncoding.cs
- prefixendpointaddressmessagefilter.cs
- WebPageTraceListener.cs
- NegationPusher.cs
- OutOfMemoryException.cs
- SQLMoneyStorage.cs
- StructuredTypeInfo.cs
- ExtendedTransformFactory.cs
- PageBreakRecord.cs
- SqlNotificationEventArgs.cs
- SystemResources.cs
- TcpStreams.cs
- SimpleHandlerFactory.cs
- CodeIndexerExpression.cs
- ControlLocalizer.cs
- CacheVirtualItemsEvent.cs
- DataListDesigner.cs
- CodeExporter.cs
- TextShapeableCharacters.cs
- EngineSite.cs
- DataKeyArray.cs
- SizeAnimationUsingKeyFrames.cs
- NaturalLanguageHyphenator.cs
- AnnotationAdorner.cs
- ApplicationContext.cs
- DataGridItemCollection.cs
- AssemblyNameUtility.cs
- EditorAttribute.cs
- DecoderBestFitFallback.cs
- Formatter.cs