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
- ProxyWebPartManager.cs
- Internal.cs
- VerificationException.cs
- WsdlBuildProvider.cs
- PointAnimation.cs
- ServicesExceptionNotHandledEventArgs.cs
- ListParaClient.cs
- LinkButton.cs
- CreateUserWizardStep.cs
- BindStream.cs
- SymbolTable.cs
- CompileLiteralTextParser.cs
- DocumentCollection.cs
- DataStorage.cs
- WebPartsPersonalization.cs
- DataBoundControlDesigner.cs
- DetailsViewInsertedEventArgs.cs
- Rules.cs
- DataObjectAttribute.cs
- SiteMapSection.cs
- CaseInsensitiveComparer.cs
- ComponentSerializationService.cs
- NavigationHelper.cs
- ScrollItemPattern.cs
- ResourceIDHelper.cs
- Configuration.cs
- UIAgentMonitor.cs
- XsdValidatingReader.cs
- BitFlagsGenerator.cs
- Comparer.cs
- TdsRecordBufferSetter.cs
- InputProcessorProfilesLoader.cs
- VisualCollection.cs
- Boolean.cs
- CorePropertiesFilter.cs
- COM2TypeInfoProcessor.cs
- OrderedEnumerableRowCollection.cs
- ContourSegment.cs
- DataConnectionHelper.cs
- HwndAppCommandInputProvider.cs
- HttpRawResponse.cs
- COM2PropertyDescriptor.cs
- FindProgressChangedEventArgs.cs
- cookiecontainer.cs
- CompensationTokenData.cs
- ExecutionEngineException.cs
- StylusPointPropertyUnit.cs
- ConsumerConnectionPointCollection.cs
- uribuilder.cs
- ServiceMemoryGates.cs
- CharKeyFrameCollection.cs
- XsdDateTime.cs
- EmptyCollection.cs
- FilterableAttribute.cs
- UndoUnit.cs
- NameNode.cs
- MimeTypeMapper.cs
- EventManager.cs
- AnchorEditor.cs
- CompositeKey.cs
- Utility.cs
- MessageDesigner.cs
- Task.cs
- PropertyValue.cs
- URL.cs
- PropertyKey.cs
- WebPartCollection.cs
- TerminateSequence.cs
- Ops.cs
- DataSourceSelectArguments.cs
- WindowsFormsHelpers.cs
- CompModSwitches.cs
- ConnectionStringSettingsCollection.cs
- Delay.cs
- SqlException.cs
- HtmlTernaryTree.cs
- ThemeDirectoryCompiler.cs
- UnmanagedMarshal.cs
- GeometryValueSerializer.cs
- DataSetUtil.cs
- DynamicResourceExtension.cs
- ConfigurationStrings.cs
- Vector3dCollection.cs
- TextTabProperties.cs
- URLString.cs
- bidPrivateBase.cs
- SQLBoolean.cs
- GridView.cs
- ManipulationInertiaStartingEventArgs.cs
- ModelItemCollectionImpl.cs
- Membership.cs
- _BufferOffsetSize.cs
- TriggerActionCollection.cs
- BadImageFormatException.cs
- Cursors.cs
- GridViewCellAutomationPeer.cs
- PlatformCulture.cs
- WebColorConverter.cs
- MessageProtectionOrder.cs
- ObjectConverter.cs