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
- FormViewCommandEventArgs.cs
- RegexWriter.cs
- DiscreteKeyFrames.cs
- XPathConvert.cs
- XmlSchemaInferenceException.cs
- WebRequestModuleElementCollection.cs
- XPathQueryGenerator.cs
- InternalConfigConfigurationFactory.cs
- diagnosticsswitches.cs
- StorageSetMapping.cs
- ConcurrentStack.cs
- DesignTimeTemplateParser.cs
- FormatterConverter.cs
- TranslateTransform3D.cs
- ParallelTimeline.cs
- ApplicationSecurityInfo.cs
- JsonDataContract.cs
- ApplicationFileCodeDomTreeGenerator.cs
- AuthenticateEventArgs.cs
- GlyphInfoList.cs
- SyntaxCheck.cs
- RelatedCurrencyManager.cs
- SqlAliaser.cs
- ArgumentReference.cs
- COM2ExtendedUITypeEditor.cs
- CacheOutputQuery.cs
- KeyGesture.cs
- Cursors.cs
- EventNotify.cs
- TextDataBindingHandler.cs
- XmlWriter.cs
- ConstructorNeedsTagAttribute.cs
- HttpConfigurationContext.cs
- ActiveXSite.cs
- PropertyConverter.cs
- COM2TypeInfoProcessor.cs
- OleAutBinder.cs
- Cloud.cs
- BufferedGraphics.cs
- UnsafeNativeMethods.cs
- BitmapEffectDrawingContextState.cs
- ListView.cs
- DataGridViewEditingControlShowingEventArgs.cs
- UIElement.cs
- UnicastIPAddressInformationCollection.cs
- Dictionary.cs
- XmlPreloadedResolver.cs
- SqlStream.cs
- HttpContext.cs
- ProcessProtocolHandler.cs
- _LocalDataStoreMgr.cs
- ChangeInterceptorAttribute.cs
- EntityContainerEmitter.cs
- COM2IDispatchConverter.cs
- ContractListAdapter.cs
- WebRequestModulesSection.cs
- ProfileSettings.cs
- HuffModule.cs
- ClientData.cs
- CatalogZoneBase.cs
- SoapFault.cs
- Encoding.cs
- StreamWriter.cs
- CodeSnippetTypeMember.cs
- MarkupExtensionParser.cs
- CharKeyFrameCollection.cs
- Merger.cs
- MaskInputRejectedEventArgs.cs
- AvTraceDetails.cs
- NotFiniteNumberException.cs
- DataGridToolTip.cs
- QuotedStringWriteStateInfo.cs
- PenLineCapValidation.cs
- FastEncoderStatics.cs
- AssemblyBuilderData.cs
- Label.cs
- _ProxyChain.cs
- WindowsFormsSectionHandler.cs
- FixedNode.cs
- ReservationCollection.cs
- Annotation.cs
- WebServiceTypeData.cs
- ActionFrame.cs
- StringToken.cs
- CatalogZone.cs
- ErrorTableItemStyle.cs
- ReadOnlyActivityGlyph.cs
- Certificate.cs
- SocketElement.cs
- GiveFeedbackEvent.cs
- AttributeExtensions.cs
- Globals.cs
- DoubleLinkListEnumerator.cs
- CompilerErrorCollection.cs
- DataService.cs
- DesignUtil.cs
- SpeechSynthesizer.cs
- TextLine.cs
- UIHelper.cs
- ProfileSection.cs