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
- RegexNode.cs
- SetIndexBinder.cs
- SelectedGridItemChangedEvent.cs
- DbModificationClause.cs
- HitTestParameters3D.cs
- ValidatingReaderNodeData.cs
- HandleCollector.cs
- UnsafeNativeMethods.cs
- MexHttpBindingElement.cs
- WindowsToolbar.cs
- FixedDSBuilder.cs
- ListDataHelper.cs
- BitmapEffectDrawingContent.cs
- ThreadExceptionEvent.cs
- StorageRoot.cs
- RuntimeResourceSet.cs
- ScrollProperties.cs
- WrapPanel.cs
- Win32.cs
- DataGridViewLayoutData.cs
- AmbientLight.cs
- Page.cs
- FixedBufferAttribute.cs
- DataBoundControlHelper.cs
- ModuleBuilder.cs
- BufferedGraphics.cs
- HijriCalendar.cs
- SmtpFailedRecipientsException.cs
- StatusCommandUI.cs
- SqlExpressionNullability.cs
- DataTablePropertyDescriptor.cs
- ByteConverter.cs
- AsyncPostBackTrigger.cs
- DataColumnMappingCollection.cs
- WebPartEditorCancelVerb.cs
- Page.cs
- SqlUserDefinedAggregateAttribute.cs
- Literal.cs
- MediaPlayer.cs
- NativeMethods.cs
- DeploymentSectionCache.cs
- XmlSchemaDatatype.cs
- DbException.cs
- MobileComponentEditorPage.cs
- DefaultAsyncDataDispatcher.cs
- SQLMoneyStorage.cs
- FrameworkContextData.cs
- ImageConverter.cs
- HyperLinkColumn.cs
- StatusBarDrawItemEvent.cs
- DataReceivedEventArgs.cs
- VerticalAlignConverter.cs
- DeviceFiltersSection.cs
- TypedElement.cs
- RepeatButtonAutomationPeer.cs
- GroupBox.cs
- ArraySortHelper.cs
- MemberProjectionIndex.cs
- ObjectCloneHelper.cs
- ContentDisposition.cs
- processwaithandle.cs
- CollectionViewGroup.cs
- MissingFieldException.cs
- BidOverLoads.cs
- LogLogRecordHeader.cs
- HtmlInputPassword.cs
- HttpModuleCollection.cs
- CodeIterationStatement.cs
- ColumnClickEvent.cs
- ToolStripSeparatorRenderEventArgs.cs
- HashRepartitionStream.cs
- DataGridViewCheckBoxCell.cs
- DependencyPropertyValueSerializer.cs
- InternalDispatchObject.cs
- LayoutUtils.cs
- SqlInternalConnectionTds.cs
- QuaternionRotation3D.cs
- CodeTypeReference.cs
- DataGridViewButtonColumn.cs
- ItemAutomationPeer.cs
- TargetInvocationException.cs
- Context.cs
- SmtpAuthenticationManager.cs
- ErrorTableItemStyle.cs
- WorkflowViewService.cs
- CustomTypeDescriptor.cs
- DrawingAttributesDefaultValueFactory.cs
- NavigationPropertyEmitter.cs
- XmlSchemaDocumentation.cs
- OleDbStruct.cs
- EUCJPEncoding.cs
- TreeNodeCollection.cs
- ChangeDirector.cs
- COM2ComponentEditor.cs
- XmlComment.cs
- MSG.cs
- MobileTextWriter.cs
- AsymmetricSignatureDeformatter.cs
- RequestQueue.cs
- SqlWebEventProvider.cs