Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / MIT / System / Web / UI / MobileControls / PersistNameAttribute.cs / 1305376 / PersistNameAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.MobileControls { using System; using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ///[ AttributeUsage(AttributeTargets.Class) ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")] public class PersistNameAttribute : Attribute { /// public static readonly PersistNameAttribute Default = new PersistNameAttribute(String.Empty); private String _name = String.Empty; /// public String Name { get { return this._name; } } /// public PersistNameAttribute(String name) { this._name = name; } /// public override bool Equals(Object obj) { if (obj == this) { return true; } if ((obj != null) && (obj is PersistNameAttribute)) { return(String.Compare(((PersistNameAttribute)obj).Name, _name, StringComparison.OrdinalIgnoreCase) == 0); } return false; } /// public override int GetHashCode() { return _name.ToLower(CultureInfo.InvariantCulture).GetHashCode(); } /// public override bool IsDefaultAttribute() { return this.Equals(Default); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.MobileControls { using System; using System.ComponentModel; using System.Globalization; using System.Security.Permissions; ///[ AttributeUsage(AttributeTargets.Class) ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] [Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")] public class PersistNameAttribute : Attribute { /// public static readonly PersistNameAttribute Default = new PersistNameAttribute(String.Empty); private String _name = String.Empty; /// public String Name { get { return this._name; } } /// public PersistNameAttribute(String name) { this._name = name; } /// public override bool Equals(Object obj) { if (obj == this) { return true; } if ((obj != null) && (obj is PersistNameAttribute)) { return(String.Compare(((PersistNameAttribute)obj).Name, _name, StringComparison.OrdinalIgnoreCase) == 0); } return false; } /// public override int GetHashCode() { return _name.ToLower(CultureInfo.InvariantCulture).GetHashCode(); } /// public override bool IsDefaultAttribute() { return this.Equals(Default); } } } // 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
- ControlPropertyNameConverter.cs
- Int32CollectionValueSerializer.cs
- DoubleSumAggregationOperator.cs
- MessageQueueException.cs
- DoWorkEventArgs.cs
- LinkedResourceCollection.cs
- HttpServerVarsCollection.cs
- DataGridViewElement.cs
- CookieParameter.cs
- ConfigurationHelpers.cs
- MembershipSection.cs
- TextBoxAutoCompleteSourceConverter.cs
- MeshGeometry3D.cs
- CaretElement.cs
- SelectionEditor.cs
- CheckBoxPopupAdapter.cs
- EncodingInfo.cs
- AsyncMethodInvoker.cs
- KernelTypeValidation.cs
- DocumentEventArgs.cs
- CodeTypeDeclaration.cs
- StorageEntityContainerMapping.cs
- Floater.cs
- CultureInfo.cs
- WorkItem.cs
- ServiceThrottle.cs
- ExpressionBindings.cs
- EntityConnection.cs
- DiscardableAttribute.cs
- QilCloneVisitor.cs
- EventLogPermissionHolder.cs
- SingleAnimationUsingKeyFrames.cs
- recordstate.cs
- QilExpression.cs
- CommandValueSerializer.cs
- _ProxyRegBlob.cs
- AppDomainManager.cs
- NavigationProperty.cs
- AuthorizationRuleCollection.cs
- TextDecorations.cs
- HttpChannelHelper.cs
- SafeNativeMethodsMilCoreApi.cs
- Input.cs
- ProcessProtocolHandler.cs
- RegistrationProxy.cs
- BridgeDataReader.cs
- LocatorBase.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- VBIdentifierTrimConverter.cs
- SqlDataSourceCache.cs
- XmlSchemaAnnotated.cs
- PolicyValidationException.cs
- DataTableCollection.cs
- ReaderWriterLockWrapper.cs
- activationcontext.cs
- SelectionEditingBehavior.cs
- Bezier.cs
- LinqDataSourceStatusEventArgs.cs
- SQLStringStorage.cs
- GridViewUpdatedEventArgs.cs
- XslAst.cs
- RouteValueExpressionBuilder.cs
- ProtocolsConfigurationHandler.cs
- SafeSecurityHelper.cs
- VariantWrapper.cs
- EntityDataSourceReferenceGroup.cs
- ConnectionPoint.cs
- COM2ColorConverter.cs
- MimeObjectFactory.cs
- UInt32Converter.cs
- FlowDocumentPaginator.cs
- DataGridViewMethods.cs
- ConfigXmlText.cs
- RtfToXamlReader.cs
- UniqueIdentifierService.cs
- NetworkInformationPermission.cs
- Margins.cs
- ISAPIWorkerRequest.cs
- DrawListViewItemEventArgs.cs
- PriorityRange.cs
- PointKeyFrameCollection.cs
- KeyedHashAlgorithm.cs
- Mouse.cs
- WebServiceHandlerFactory.cs
- ALinqExpressionVisitor.cs
- XmlCustomFormatter.cs
- WsdlInspector.cs
- NetworkInformationException.cs
- ThreadInterruptedException.cs
- StringSorter.cs
- securitycriticaldataformultiplegetandset.cs
- XmlDeclaration.cs
- QilFunction.cs
- ExecutionContext.cs
- UrlMappingCollection.cs
- TagPrefixInfo.cs
- PropertyNames.cs
- TextDocumentView.cs
- EventTrigger.cs
- DataPagerField.cs