Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / StateItem.cs / 1305376 / StateItem.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI {
using System;
/*
* The StateItem class * by the StateBag class.
* The StateItem has an object value, a dirty flag.
*/
///
/// Represents an item that is saved in the class when view state
/// information is persisted between Web requests.
///
public sealed class StateItem {
private object value;
private bool isDirty;
/*
* Constructs a StateItem with an initial value.
*/
internal StateItem(object initialValue) {
value = initialValue;
isDirty = false;
}
/*
* Property to indicate StateItem has been modified.
*/
///
/// Indicates whether the object has been modified.
///
public bool IsDirty {
get {
return isDirty;
}
set {
isDirty = value;
}
}
/*
* Property to access the StateItem value.
*/
///
/// Indicates the value of the item that is stored in the
/// object.
///
public object Value {
get {
return value;
}
set {
this.value = value;
}
}
}
}
// 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
- HttpHandlersInstallComponent.cs
- Brush.cs
- HMAC.cs
- HtmlHistory.cs
- PreviewKeyDownEventArgs.cs
- XmlWriterDelegator.cs
- WebRequestModuleElementCollection.cs
- CollectionViewGroupInternal.cs
- CompletedAsyncResult.cs
- MemberAccessException.cs
- DataComponentMethodGenerator.cs
- SplashScreen.cs
- TreeNodeBindingCollection.cs
- XmlSchemaObjectTable.cs
- CodeDomLoader.cs
- SafePipeHandle.cs
- ServiceModelConfiguration.cs
- SeverityFilter.cs
- BaseValidator.cs
- ContentWrapperAttribute.cs
- EmptyEnumerator.cs
- DataGridViewHeaderCell.cs
- printdlgexmarshaler.cs
- ObjectAnimationUsingKeyFrames.cs
- SupportedAddressingMode.cs
- List.cs
- SystemFonts.cs
- HttpModuleCollection.cs
- TemplatePartAttribute.cs
- BuildProvider.cs
- FormatException.cs
- ApplicationServiceManager.cs
- FontStyle.cs
- CallTemplateAction.cs
- ResXResourceReader.cs
- BrushMappingModeValidation.cs
- CodeGeneratorOptions.cs
- HandlerWithFactory.cs
- AdornedElementPlaceholder.cs
- PaperSize.cs
- DiagnosticTraceSchemas.cs
- DoubleKeyFrameCollection.cs
- SHA384CryptoServiceProvider.cs
- DatePicker.cs
- Rotation3DAnimation.cs
- GridViewDeleteEventArgs.cs
- TemplateKey.cs
- LOSFormatter.cs
- MinMaxParagraphWidth.cs
- DataGridViewCellLinkedList.cs
- StaticTextPointer.cs
- ProgressiveCrcCalculatingStream.cs
- ValidationEventArgs.cs
- ConnectorSelectionGlyph.cs
- DataGridPagerStyle.cs
- ToolStripGrip.cs
- Process.cs
- ExpressionLexer.cs
- RequestCachePolicy.cs
- ToolStrip.cs
- CornerRadiusConverter.cs
- ConnectionPoolManager.cs
- SqlWorkflowPersistenceService.cs
- InternalsVisibleToAttribute.cs
- QuestionEventArgs.cs
- CodeExpressionCollection.cs
- BlurEffect.cs
- XPathParser.cs
- Inline.cs
- ExtensionSimplifierMarkupObject.cs
- BrowserCapabilitiesCompiler.cs
- DynamicRenderer.cs
- ContextQuery.cs
- NoPersistProperty.cs
- CollectionView.cs
- TraceSwitch.cs
- InfoCardProofToken.cs
- BezierSegment.cs
- ListItemParagraph.cs
- XamlGridLengthSerializer.cs
- Propagator.ExtentPlaceholderCreator.cs
- CheckBoxFlatAdapter.cs
- EncodingInfo.cs
- RelationshipWrapper.cs
- ConfigurationSectionCollection.cs
- HighContrastHelper.cs
- RootBrowserWindowProxy.cs
- SymbolType.cs
- UserControlParser.cs
- AsyncOperation.cs
- XmlSchemaAttribute.cs
- DataGridViewCellCancelEventArgs.cs
- WebPartEditorApplyVerb.cs
- Exception.cs
- WebPartTransformer.cs
- NotifyCollectionChangedEventArgs.cs
- UIElementParagraph.cs
- SafeLibraryHandle.cs
- MutexSecurity.cs
- MergablePropertyAttribute.cs