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
- DataBoundControl.cs
- GlyphRunDrawing.cs
- DataBoundControlAdapter.cs
- DataBindingCollection.cs
- IssuedTokenParametersEndpointAddressElement.cs
- TraceUtils.cs
- DocumentPropertiesDialog.cs
- HttpListener.cs
- TemplatePagerField.cs
- nulltextnavigator.cs
- ThreadSafeList.cs
- HandledEventArgs.cs
- HttpProtocolImporter.cs
- CodeTypeReference.cs
- GeometryHitTestResult.cs
- SqlClientMetaDataCollectionNames.cs
- MbpInfo.cs
- BufferedMessageData.cs
- DbProviderFactories.cs
- TemplateKey.cs
- ExtentJoinTreeNode.cs
- FlowPosition.cs
- XamlPathDataSerializer.cs
- XamlSerializerUtil.cs
- WorkflowServiceOperationListItem.cs
- WebRequestModuleElement.cs
- VisualProxy.cs
- NavigationFailedEventArgs.cs
- Int64AnimationUsingKeyFrames.cs
- SystemPens.cs
- SmtpFailedRecipientException.cs
- dsa.cs
- CheckPair.cs
- QueryLifecycle.cs
- ThreadStaticAttribute.cs
- StopStoryboard.cs
- CellLabel.cs
- DataRelationPropertyDescriptor.cs
- AnnotationHighlightLayer.cs
- SolidColorBrush.cs
- ServiceModelActivity.cs
- DispatcherProcessingDisabled.cs
- AnnotationComponentManager.cs
- TextEditorParagraphs.cs
- XmlToDatasetMap.cs
- StoreContentChangedEventArgs.cs
- FieldDescriptor.cs
- SimpleType.cs
- FileNotFoundException.cs
- Int16AnimationBase.cs
- TypeDescriptionProvider.cs
- XmlQualifiedName.cs
- AssemblyNameProxy.cs
- ServiceContractListItemList.cs
- DebugController.cs
- XmlSchemaElement.cs
- StringConcat.cs
- CaretElement.cs
- CodeDomComponentSerializationService.cs
- HitTestDrawingContextWalker.cs
- _PooledStream.cs
- PasswordRecovery.cs
- CompilerScopeManager.cs
- FrameworkName.cs
- CodeSnippetExpression.cs
- StylusDevice.cs
- Brush.cs
- DropAnimation.xaml.cs
- DataGridViewUtilities.cs
- ScalarOps.cs
- DbProviderManifest.cs
- RequestCache.cs
- TrimSurroundingWhitespaceAttribute.cs
- ContextMenuStrip.cs
- ColorTransformHelper.cs
- EventRoute.cs
- PathData.cs
- TextSelectionHighlightLayer.cs
- CatalogZoneAutoFormat.cs
- MediaTimeline.cs
- ControlValuePropertyAttribute.cs
- SchemaElementLookUpTable.cs
- WebServicesInteroperability.cs
- ObjectTag.cs
- OutputCacheProviderCollection.cs
- Application.cs
- SymmetricKey.cs
- COM2ColorConverter.cs
- TransactionFlowOption.cs
- XmlStringTable.cs
- RightNameExpirationInfoPair.cs
- PreviewKeyDownEventArgs.cs
- ListParagraph.cs
- XmlHierarchyData.cs
- XmlNavigatorFilter.cs
- input.cs
- XmlSchemaDocumentation.cs
- SpotLight.cs
- SafeNativeMethods.cs
- DataGridViewComboBoxEditingControl.cs