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
- WebPartConnectionsConnectVerb.cs
- MatrixUtil.cs
- MenuCommand.cs
- SQLSingleStorage.cs
- BinaryParser.cs
- NetworkStream.cs
- TextRange.cs
- XmlEventCache.cs
- DefaultParameterValueAttribute.cs
- DBParameter.cs
- Misc.cs
- Win32KeyboardDevice.cs
- AstNode.cs
- ButtonBaseAdapter.cs
- ProxyGenerationError.cs
- XmlReflectionImporter.cs
- EntityKey.cs
- ChildrenQuery.cs
- HiddenFieldDesigner.cs
- CommunicationObjectManager.cs
- ProfessionalColors.cs
- ParameterModifier.cs
- EncodingDataItem.cs
- XamlStream.cs
- RequestNavigateEventArgs.cs
- _TimerThread.cs
- Expressions.cs
- TreeNodeBinding.cs
- PageRanges.cs
- GetWorkflowTree.cs
- WrappedIUnknown.cs
- GPRECTF.cs
- XmlSchemaValidator.cs
- Setter.cs
- ComAdminWrapper.cs
- DisplayClaim.cs
- ColumnHeaderConverter.cs
- NameTable.cs
- BamlResourceDeserializer.cs
- GridItemProviderWrapper.cs
- ToolboxItemFilterAttribute.cs
- DelegatingConfigHost.cs
- DirectoryNotFoundException.cs
- ExpressionBindingCollection.cs
- ProviderException.cs
- AmbientLight.cs
- DecoderFallbackWithFailureFlag.cs
- LocatorBase.cs
- MD5CryptoServiceProvider.cs
- TimeManager.cs
- RequestUriProcessor.cs
- AnnotationHelper.cs
- PriorityBinding.cs
- GetPageCompletedEventArgs.cs
- IIS7ConfigurationLoader.cs
- DefaultBindingPropertyAttribute.cs
- TraceLog.cs
- BasicViewGenerator.cs
- VerificationException.cs
- NameNode.cs
- HtmlWindowCollection.cs
- Enum.cs
- WsdlParser.cs
- AutoFocusStyle.xaml.cs
- TimelineCollection.cs
- DesignerGeometryHelper.cs
- ComplexLine.cs
- EnumValAlphaComparer.cs
- SimpleBitVector32.cs
- SharedDp.cs
- MetabaseSettings.cs
- DbConnectionPool.cs
- UserControlBuildProvider.cs
- LinqToSqlWrapper.cs
- QilVisitor.cs
- GridViewCancelEditEventArgs.cs
- BoundColumn.cs
- TdsValueSetter.cs
- CompressionTracing.cs
- securitycriticaldata.cs
- GlobalDataBindingHandler.cs
- SessionMode.cs
- ProgressPage.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- CompareValidator.cs
- LogAppendAsyncResult.cs
- PerCallInstanceContextProvider.cs
- RowToParametersTransformer.cs
- TextProviderWrapper.cs
- RelatedEnd.cs
- MediaEntryAttribute.cs
- DbModificationClause.cs
- CompilerTypeWithParams.cs
- DesignerMetadata.cs
- DiscoveryExceptionDictionary.cs
- RawMouseInputReport.cs
- Base64Encoding.cs
- MonthChangedEventArgs.cs
- CodeExporter.cs
- RuleInfoComparer.cs