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
- DbQueryCommandTree.cs
- AssociationSet.cs
- SimpleLine.cs
- SecurityHelper.cs
- DocobjHost.cs
- ListViewGroup.cs
- HwndPanningFeedback.cs
- _AuthenticationState.cs
- DeflateEmulationStream.cs
- BatchWriter.cs
- PropertyMetadata.cs
- UidManager.cs
- TextRange.cs
- CurrentTimeZone.cs
- GreenMethods.cs
- SchemaAttDef.cs
- SkinBuilder.cs
- StorageAssociationSetMapping.cs
- CollectionBase.cs
- Type.cs
- SapiRecoContext.cs
- ProtocolsConfigurationEntry.cs
- ScriptControl.cs
- FileUtil.cs
- DataGridViewIntLinkedList.cs
- AncillaryOps.cs
- StringWriter.cs
- SafeLibraryHandle.cs
- DataGridViewCellParsingEventArgs.cs
- EventRecordWrittenEventArgs.cs
- pingexception.cs
- FunctionUpdateCommand.cs
- TrackingMemoryStreamFactory.cs
- TemplateControlCodeDomTreeGenerator.cs
- DesignerAdapterUtil.cs
- sqlstateclientmanager.cs
- DispatchWrapper.cs
- DataPagerCommandEventArgs.cs
- CheckBoxField.cs
- JumpItem.cs
- ScriptRegistrationManager.cs
- DesignDataSource.cs
- TrustLevel.cs
- BrowsableAttribute.cs
- StringValidator.cs
- VariableQuery.cs
- Transform.cs
- TableAdapterManagerMethodGenerator.cs
- LicenseContext.cs
- ProxyWebPartManager.cs
- SecurityTokenProvider.cs
- ObjectToIdCache.cs
- XhtmlCssHandler.cs
- WindowsListViewSubItem.cs
- WindowsListViewGroupHelper.cs
- ExceptionRoutedEventArgs.cs
- WebHttpSecurityModeHelper.cs
- _Win32.cs
- PersonalizableAttribute.cs
- Propagator.Evaluator.cs
- MethodExecutor.cs
- DataTableMappingCollection.cs
- SubordinateTransaction.cs
- _Events.cs
- Int16KeyFrameCollection.cs
- SqlDependency.cs
- ClientUrlResolverWrapper.cs
- DataSysAttribute.cs
- Utils.cs
- AssertHelper.cs
- ListViewContainer.cs
- SoapClientProtocol.cs
- Atom10FormatterFactory.cs
- Mappings.cs
- CloseSequenceResponse.cs
- SqlMethodAttribute.cs
- Visual3DCollection.cs
- sitestring.cs
- BindingExpressionBase.cs
- GPStream.cs
- HttpDictionary.cs
- ReadOnlyTernaryTree.cs
- DataGridColumnEventArgs.cs
- TraceSwitch.cs
- SignatureResourcePool.cs
- SqlNodeTypeOperators.cs
- ToolboxCategory.cs
- XPathPatternBuilder.cs
- TrackingDataItemValue.cs
- CmsInterop.cs
- BitmapVisualManager.cs
- ValueSerializer.cs
- DependsOnAttribute.cs
- SettingsProviderCollection.cs
- Stylus.cs
- XmlCharType.cs
- cookiecontainer.cs
- SmiRecordBuffer.cs
- DbConnectionPoolGroup.cs
- PanelStyle.cs