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
- SafeNativeMemoryHandle.cs
- WebPartCollection.cs
- ToolStripSplitStackLayout.cs
- PhysicalOps.cs
- StaticFileHandler.cs
- DLinqDataModelProvider.cs
- XmlReader.cs
- PanningMessageFilter.cs
- SecurityBindingElement.cs
- RelationshipEntry.cs
- GridItemProviderWrapper.cs
- COM2ColorConverter.cs
- Debug.cs
- DataSourceHelper.cs
- AssemblyHash.cs
- SqlDataSourceCache.cs
- QueryCacheManager.cs
- VersionedStreamOwner.cs
- InputReport.cs
- WindowsStatusBar.cs
- XmlSchemaCollection.cs
- BaseHashHelper.cs
- EntityKey.cs
- PasswordTextContainer.cs
- linebase.cs
- WindowsGraphicsWrapper.cs
- SmiSettersStream.cs
- HtmlMeta.cs
- SystemDropShadowChrome.cs
- GenerateHelper.cs
- HttpValueCollection.cs
- ControlsConfig.cs
- ProfileBuildProvider.cs
- ViewBox.cs
- XpsManager.cs
- BasicKeyConstraint.cs
- FocusChangedEventArgs.cs
- QuaternionConverter.cs
- DataGridTable.cs
- TypeConverterValueSerializer.cs
- ImageListStreamer.cs
- ExtractCollection.cs
- DrawingBrush.cs
- NonVisualControlAttribute.cs
- BinaryObjectInfo.cs
- InstanceDataCollectionCollection.cs
- PrinterUnitConvert.cs
- SmiRecordBuffer.cs
- Trace.cs
- ProxyFragment.cs
- DataServiceStreamProviderWrapper.cs
- Context.cs
- _UriSyntax.cs
- MailBnfHelper.cs
- XamlPathDataSerializer.cs
- FixedDocumentSequencePaginator.cs
- StringUtil.cs
- TileModeValidation.cs
- PathNode.cs
- IBuiltInEvidence.cs
- WindowsEditBox.cs
- ApplicationManager.cs
- DependentTransaction.cs
- GPRECTF.cs
- WebBrowserDocumentCompletedEventHandler.cs
- OpCodes.cs
- HandlerBase.cs
- XmlArrayItemAttribute.cs
- CalendarDateRangeChangingEventArgs.cs
- _AutoWebProxyScriptWrapper.cs
- ApplicationServicesHostFactory.cs
- CryptoApi.cs
- LayoutManager.cs
- HighlightVisual.cs
- CodeSnippetExpression.cs
- StyleXamlTreeBuilder.cs
- NullRuntimeConfig.cs
- KeyPressEvent.cs
- DataGridViewMethods.cs
- ImageFormatConverter.cs
- WebConfigurationHostFileChange.cs
- FreezableCollection.cs
- IndexingContentUnit.cs
- RawTextInputReport.cs
- Configuration.cs
- OdbcInfoMessageEvent.cs
- UnSafeCharBuffer.cs
- DoubleLinkListEnumerator.cs
- ProfilePropertySettingsCollection.cs
- Parser.cs
- DataGridViewTextBoxEditingControl.cs
- WindowsSolidBrush.cs
- WebPartConnectionsDisconnectVerb.cs
- SqlDataSourceCommandEventArgs.cs
- Int64KeyFrameCollection.cs
- GatewayDefinition.cs
- WindowsNonControl.cs
- NativeActivityAbortContext.cs
- DataContractSerializerOperationFormatter.cs
- ManagedFilter.cs