Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / ViewStateModeByIdAttribute.cs / 1305376 / ViewStateModeByIdAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI { using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; [AttributeUsage(AttributeTargets.Class)] public sealed class ViewStateModeByIdAttribute : Attribute { static Hashtable _viewStateIdTypes = Hashtable.Synchronized(new Hashtable()); public ViewStateModeByIdAttribute() { } internal static bool IsEnabled(Type type) { if (!_viewStateIdTypes.ContainsKey(type)) { System.ComponentModel.AttributeCollection attrs = TypeDescriptor.GetAttributes(type); ViewStateModeByIdAttribute attr = (ViewStateModeByIdAttribute)attrs[typeof(ViewStateModeByIdAttribute)]; _viewStateIdTypes[type] = (attr != null); } return (bool)_viewStateIdTypes[type]; } } } // 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.Collections; using System.Collections.Generic; using System.ComponentModel; [AttributeUsage(AttributeTargets.Class)] public sealed class ViewStateModeByIdAttribute : Attribute { static Hashtable _viewStateIdTypes = Hashtable.Synchronized(new Hashtable()); public ViewStateModeByIdAttribute() { } internal static bool IsEnabled(Type type) { if (!_viewStateIdTypes.ContainsKey(type)) { System.ComponentModel.AttributeCollection attrs = TypeDescriptor.GetAttributes(type); ViewStateModeByIdAttribute attr = (ViewStateModeByIdAttribute)attrs[typeof(ViewStateModeByIdAttribute)]; _viewStateIdTypes[type] = (attr != null); } return (bool)_viewStateIdTypes[type]; } } } // 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
- DecimalConstantAttribute.cs
- ObjectContextServiceProvider.cs
- Attributes.cs
- QueryOutputWriter.cs
- ExpressionEditorAttribute.cs
- CodeStatementCollection.cs
- DocumentPage.cs
- HandlerBase.cs
- Point3D.cs
- SponsorHelper.cs
- DataSetUtil.cs
- PointAnimationBase.cs
- SingleAnimationUsingKeyFrames.cs
- SiteMapDataSourceView.cs
- MatrixIndependentAnimationStorage.cs
- MetadataPropertyvalue.cs
- HttpCapabilitiesEvaluator.cs
- SerializableAttribute.cs
- _ConnectStream.cs
- DataControlExtensions.cs
- ComMethodElementCollection.cs
- XmlElementAttributes.cs
- SeverityFilter.cs
- KeySpline.cs
- PointIndependentAnimationStorage.cs
- EntitySetDataBindingList.cs
- Thread.cs
- WebPartConnectionsCloseVerb.cs
- HttpDebugHandler.cs
- DbDataRecord.cs
- GridViewUpdateEventArgs.cs
- ArrangedElementCollection.cs
- AsyncOperation.cs
- HatchBrush.cs
- StatusBarAutomationPeer.cs
- TemplateBuilder.cs
- EventProviderWriter.cs
- ReflectionPermission.cs
- ObjectTag.cs
- ApplicationDirectory.cs
- Events.cs
- SerializationInfo.cs
- EntityDataSourceViewSchema.cs
- Sql8ConformanceChecker.cs
- FixedSOMTableCell.cs
- KeyboardDevice.cs
- GeneralTransform3DTo2D.cs
- XmlReflectionMember.cs
- VirtualDirectoryMapping.cs
- SamlAuthenticationClaimResource.cs
- ConsoleKeyInfo.cs
- StatusBarAutomationPeer.cs
- NamedPipeConnectionPool.cs
- SoapServerMessage.cs
- InputBinder.cs
- SqlFunctionAttribute.cs
- IntegerValidatorAttribute.cs
- StyleCollection.cs
- HtmlTitle.cs
- StorageSetMapping.cs
- DataListItemCollection.cs
- ParameterElement.cs
- SymbolTable.cs
- SQLDoubleStorage.cs
- RawTextInputReport.cs
- TextDecoration.cs
- PrimitiveXmlSerializers.cs
- HandlerBase.cs
- Trace.cs
- GeneralTransform3DCollection.cs
- BinaryFormatter.cs
- StackSpiller.cs
- SqlDesignerDataSourceView.cs
- FixUpCollection.cs
- TemplateControl.cs
- FocusChangedEventArgs.cs
- EntityCommandDefinition.cs
- ContravarianceAdapter.cs
- SQLDouble.cs
- WeakReference.cs
- counter.cs
- HtmlTableCell.cs
- Animatable.cs
- BrowserCapabilitiesFactory35.cs
- DispatchRuntime.cs
- RemoteWebConfigurationHost.cs
- SqlFunctionAttribute.cs
- StylusButton.cs
- Soap12ProtocolImporter.cs
- TracedNativeMethods.cs
- MethodSignatureGenerator.cs
- Int32Storage.cs
- Boolean.cs
- Dynamic.cs
- mediaclock.cs
- WebPartVerb.cs
- MessageQuerySet.cs
- PriorityChain.cs
- IndicShape.cs
- LineServices.cs