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
- ContractUtils.cs
- ComNativeDescriptor.cs
- DocumentPageViewAutomationPeer.cs
- OleServicesContext.cs
- URL.cs
- BufferedGraphicsContext.cs
- DataServiceSaveChangesEventArgs.cs
- PrintControllerWithStatusDialog.cs
- EventLogPropertySelector.cs
- _PooledStream.cs
- DataGridHyperlinkColumn.cs
- PackageFilter.cs
- ConsumerConnectionPointCollection.cs
- DelayDesigner.cs
- Vector3DValueSerializer.cs
- HttpCacheParams.cs
- MdImport.cs
- XPathDocumentIterator.cs
- ResourceContainer.cs
- sapiproxy.cs
- HierarchicalDataBoundControl.cs
- input.cs
- ElementMarkupObject.cs
- SecurityStateEncoder.cs
- BoundPropertyEntry.cs
- ADMembershipProvider.cs
- CqlLexerHelpers.cs
- TaskHelper.cs
- IncrementalCompileAnalyzer.cs
- NumericExpr.cs
- MenuItem.cs
- SingleConverter.cs
- LineMetrics.cs
- SettingsAttributes.cs
- __FastResourceComparer.cs
- AssemblyBuilder.cs
- PrintDialogException.cs
- ErrorsHelper.cs
- ActivityInterfaces.cs
- XmlWriterDelegator.cs
- SqlCharStream.cs
- DoubleConverter.cs
- WindowsListViewGroupSubsetLink.cs
- ServiceEndpointAssociationProvider.cs
- PersonalizationProviderCollection.cs
- TextViewSelectionProcessor.cs
- XmlTextWriter.cs
- MemberMaps.cs
- AppDomain.cs
- MetadataItemSerializer.cs
- QueryExpr.cs
- Application.cs
- SaveFileDialogDesigner.cs
- WorkflowServiceAttributes.cs
- XmlSchemaImport.cs
- MimeMapping.cs
- NameValueSectionHandler.cs
- AbstractSvcMapFileLoader.cs
- LoadMessageLogger.cs
- ThemeDirectoryCompiler.cs
- TriggerAction.cs
- DurableOperationAttribute.cs
- DataGridColumn.cs
- basecomparevalidator.cs
- XmlRootAttribute.cs
- DriveInfo.cs
- WebPartManagerInternals.cs
- BaseDataList.cs
- DataObjectEventArgs.cs
- DEREncoding.cs
- ResourcePermissionBase.cs
- RotateTransform3D.cs
- BindingListCollectionView.cs
- QuaternionAnimationBase.cs
- PolyLineSegmentFigureLogic.cs
- Adorner.cs
- ListBox.cs
- XDeferredAxisSource.cs
- Image.cs
- RectAnimationClockResource.cs
- Resources.Designer.cs
- DynamicPropertyHolder.cs
- CompositeScriptReference.cs
- DbProviderFactoriesConfigurationHandler.cs
- DateTimeFormat.cs
- AttributeTableBuilder.cs
- Animatable.cs
- TdsParser.cs
- WebPartZoneDesigner.cs
- CacheDependency.cs
- Normalization.cs
- RadioButton.cs
- ManagedIStream.cs
- ParallelTimeline.cs
- ServiceOperationParameter.cs
- WeakReference.cs
- MultiPropertyDescriptorGridEntry.cs
- WindowsSlider.cs
- WebBodyFormatMessageProperty.cs
- TabItem.cs