Code:
/ FX-1434 / FX-1434 / 1.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
- DecoderNLS.cs
- DataGridViewLinkColumn.cs
- DbConnectionStringBuilder.cs
- Floater.cs
- HttpWebRequestElement.cs
- ZipIOCentralDirectoryFileHeader.cs
- SchemaElementLookUpTableEnumerator.cs
- WorkItem.cs
- WebUtility.cs
- ControlCachePolicy.cs
- AsyncCallback.cs
- RowToParametersTransformer.cs
- URI.cs
- ListBindableAttribute.cs
- PrintPreviewControl.cs
- Parameter.cs
- DetailsViewDeleteEventArgs.cs
- BaseHashHelper.cs
- EmbeddedMailObject.cs
- WindowExtensionMethods.cs
- HealthMonitoringSectionHelper.cs
- StandardMenuStripVerb.cs
- FilterElement.cs
- MetaModel.cs
- List.cs
- ProfileSection.cs
- FactoryGenerator.cs
- Variable.cs
- XmlSchemaExternal.cs
- XmlNamespaceManager.cs
- Collection.cs
- Substitution.cs
- ColumnReorderedEventArgs.cs
- TypeLibConverter.cs
- SessionPageStatePersister.cs
- LinkUtilities.cs
- CryptoApi.cs
- ComplexTypeEmitter.cs
- BitmapFrameDecode.cs
- SchemaElement.cs
- ValueQuery.cs
- TextRangeEditLists.cs
- NavigationService.cs
- RenderData.cs
- ListViewEditEventArgs.cs
- SystemInformation.cs
- PropertyDescriptor.cs
- ReadOnlyDataSource.cs
- IconEditor.cs
- DataGridCommandEventArgs.cs
- HotSpot.cs
- ListenerBinder.cs
- NamedObject.cs
- Parser.cs
- EraserBehavior.cs
- ScriptServiceAttribute.cs
- ValidationManager.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- EventSchemaTraceListener.cs
- TextParagraphCache.cs
- TreeViewItemAutomationPeer.cs
- ProfileInfo.cs
- ADConnectionHelper.cs
- XmlCharCheckingWriter.cs
- VisualProxy.cs
- ConfigDefinitionUpdates.cs
- UnionCodeGroup.cs
- WebEvents.cs
- SqlCacheDependencyDatabase.cs
- CompositeDispatchFormatter.cs
- InternalPolicyElement.cs
- WindowManager.cs
- ActivityBindForm.cs
- UncommonField.cs
- MarkerProperties.cs
- ConnectionStringSettings.cs
- PageTheme.cs
- DiffuseMaterial.cs
- ResetableIterator.cs
- Aes.cs
- GridPatternIdentifiers.cs
- ProfileParameter.cs
- TransactionFlowAttribute.cs
- CodeCastExpression.cs
- TypeNameConverter.cs
- TextRunTypographyProperties.cs
- Token.cs
- GenericAuthenticationEventArgs.cs
- ImportDesigner.xaml.cs
- DiscardableAttribute.cs
- PropertyInformationCollection.cs
- DocumentViewer.cs
- ScrollItemPattern.cs
- DocumentGrid.cs
- MsmqElementBase.cs
- StylusPlugin.cs
- CompilerHelpers.cs
- XmlFormatExtensionPrefixAttribute.cs
- BitmapSourceSafeMILHandle.cs
- BaseDataList.cs