Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / CompMod / System / ComponentModel / Design / Serialization / RootContext.cs / 1 / RootContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel.Design.Serialization { using System; using System.CodeDom; using System.Collections; using System.Collections.Generic; ////// /// The root context is added by a type code dom serailizier to provide a definiton /// of the "root" object. /// public sealed class RootContext { private CodeExpression expression; private object value; ////// /// This object can be placed on the context stack to represent the object that is the root /// of the serialization hierarchy. In addition to this instance, the RootContext also /// contains an expression that can be used to reference the RootContext. /// public RootContext(CodeExpression expression, object value) { if (expression == null) throw new ArgumentNullException("expression"); if (value == null) throw new ArgumentNullException("value"); this.expression = expression; this.value = value; } ////// /// The expression representing the root object in the object graph. /// public CodeExpression Expression { get { return expression; } } ////// /// The root object of the object graph. /// public object Value { get { return value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TraceSection.cs
- ChildChangedEventArgs.cs
- MexHttpsBindingElement.cs
- ServiceModelDictionary.cs
- BamlResourceSerializer.cs
- SystemResourceHost.cs
- BinaryMethodMessage.cs
- SqlRetyper.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- configsystem.cs
- NonParentingControl.cs
- ResourceProperty.cs
- ButtonStandardAdapter.cs
- NullEntityWrapper.cs
- PrintPreviewGraphics.cs
- Comparer.cs
- SchemaObjectWriter.cs
- RoleManagerModule.cs
- SqlWebEventProvider.cs
- ViewUtilities.cs
- MediaPlayerState.cs
- ConfigurationManagerInternal.cs
- WindowsButton.cs
- FixedSOMPageElement.cs
- CommandHelpers.cs
- CqlQuery.cs
- ChannelManager.cs
- DatagridviewDisplayedBandsData.cs
- UriScheme.cs
- FamilyMap.cs
- AudioFileOut.cs
- EdmMember.cs
- SpStreamWrapper.cs
- TypeLoadException.cs
- GeneralTransform3DGroup.cs
- DependencyPropertyConverter.cs
- TimeSpanParse.cs
- RegexMatchCollection.cs
- ArgIterator.cs
- WebBrowserProgressChangedEventHandler.cs
- ChangePassword.cs
- TableFieldsEditor.cs
- PhonemeEventArgs.cs
- CodeConstructor.cs
- HandlerWithFactory.cs
- ValidationSummary.cs
- StyleHelper.cs
- TablePattern.cs
- HybridDictionary.cs
- AutomationPropertyInfo.cs
- CodeTypeReferenceCollection.cs
- XhtmlBasicCalendarAdapter.cs
- Point.cs
- JavaScriptObjectDeserializer.cs
- TempFiles.cs
- FrameworkContentElement.cs
- WebResponse.cs
- StrokeCollectionConverter.cs
- IconHelper.cs
- DependencyPropertyHelper.cs
- EventPropertyMap.cs
- Sentence.cs
- RoleService.cs
- CustomDictionarySources.cs
- DetailsViewPageEventArgs.cs
- HtmlContainerControl.cs
- Identity.cs
- WorkerProcess.cs
- FunctionDetailsReader.cs
- WorkflowRuntimeBehavior.cs
- ManualResetEvent.cs
- SHA1.cs
- Socket.cs
- Certificate.cs
- _RequestCacheProtocol.cs
- SqlCaseSimplifier.cs
- ButtonColumn.cs
- SerializationStore.cs
- shaperfactoryquerycacheentry.cs
- LocatorManager.cs
- ColumnProvider.cs
- TreeNode.cs
- URLIdentityPermission.cs
- MiniMapControl.xaml.cs
- DataColumnChangeEvent.cs
- AsymmetricKeyExchangeDeformatter.cs
- SequentialOutput.cs
- HttpApplicationFactory.cs
- WebUtil.cs
- SystemInformation.cs
- InputProcessorProfiles.cs
- Odbc32.cs
- SessionStateItemCollection.cs
- UserPreferenceChangedEventArgs.cs
- EditableRegion.cs
- BitmapEffectDrawingContextWalker.cs
- ContentPathSegment.cs
- ValidationEventArgs.cs
- DataGridViewUtilities.cs
- MimeReflector.cs