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
- ObjectQueryState.cs
- MessageContractImporter.cs
- MemberPathMap.cs
- ConnectivityStatus.cs
- Expression.cs
- LocalizableResourceBuilder.cs
- WorkflowQueueInfo.cs
- TimeSpanOrInfiniteConverter.cs
- XmlnsCompatibleWithAttribute.cs
- SetIterators.cs
- DataGridViewControlCollection.cs
- MonthCalendarDesigner.cs
- PenLineJoinValidation.cs
- BuildProviderCollection.cs
- TokenBasedSet.cs
- UrlPath.cs
- CompiledELinqQueryState.cs
- DecimalConstantAttribute.cs
- XmlSerializableReader.cs
- DataGridViewBand.cs
- DelegateTypeInfo.cs
- SerializableTypeCodeDomSerializer.cs
- FigureParaClient.cs
- TextModifier.cs
- ScrollItemPattern.cs
- QueryPageSettingsEventArgs.cs
- Message.cs
- ToolStripItemEventArgs.cs
- GestureRecognizer.cs
- VectorAnimationBase.cs
- ArglessEventHandlerProxy.cs
- XamlTypeMapper.cs
- Timeline.cs
- SafeHandles.cs
- DataTableReaderListener.cs
- EventManager.cs
- SchemaNames.cs
- RepeatButton.cs
- AttributeUsageAttribute.cs
- CapabilitiesPattern.cs
- Int32CollectionValueSerializer.cs
- AlphaSortedEnumConverter.cs
- SourceLocation.cs
- XmlValidatingReaderImpl.cs
- ContextStaticAttribute.cs
- ProtocolsConfigurationHandler.cs
- GeneralTransformCollection.cs
- MSAAWinEventWrap.cs
- Bind.cs
- ObjectReferenceStack.cs
- StateDesignerConnector.cs
- xmlNames.cs
- DataSource.cs
- glyphs.cs
- KeyValueSerializer.cs
- SafeIUnknown.cs
- RenderingEventArgs.cs
- DataGridViewColumnEventArgs.cs
- cache.cs
- WindowsImpersonationContext.cs
- DataControlField.cs
- DataGridViewCellLinkedList.cs
- Label.cs
- KeyboardEventArgs.cs
- HttpConfigurationSystem.cs
- SafeEventLogReadHandle.cs
- SqlMethods.cs
- WmlFormAdapter.cs
- InProcStateClientManager.cs
- InvokeProviderWrapper.cs
- TagNameToTypeMapper.cs
- MetadataExporter.cs
- ReferentialConstraint.cs
- FormsAuthenticationTicket.cs
- AnnotationDocumentPaginator.cs
- VerticalAlignConverter.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- KeyFrames.cs
- DataSourceProvider.cs
- SystemIPGlobalStatistics.cs
- InvalidDataContractException.cs
- ProviderBase.cs
- ArgumentNullException.cs
- FileDialogCustomPlacesCollection.cs
- ListViewItemSelectionChangedEvent.cs
- ExpressionBindingCollection.cs
- PropertyGroupDescription.cs
- Policy.cs
- SortableBindingList.cs
- ExclusiveCanonicalizationTransform.cs
- RandomNumberGenerator.cs
- UInt64Storage.cs
- MatrixTransform.cs
- DataBinding.cs
- HtmlControlPersistable.cs
- SafeSystemMetrics.cs
- MULTI_QI.cs
- NamespaceDisplayAutomationPeer.cs
- Aggregates.cs
- WebConfigurationManager.cs