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
- ControlCachePolicy.cs
- SafeIUnknown.cs
- AppSecurityManager.cs
- ListBoxItemWrapperAutomationPeer.cs
- NavigatingCancelEventArgs.cs
- GridLength.cs
- SplitContainer.cs
- TrackBar.cs
- SchemaTypeEmitter.cs
- HostExecutionContextManager.cs
- DataGridViewCellValueEventArgs.cs
- StringValidatorAttribute.cs
- NegotiateStream.cs
- SmiEventSink_DeferedProcessing.cs
- ClientEventManager.cs
- ParameterInfo.cs
- Expressions.cs
- XmlMemberMapping.cs
- DependencyObjectPropertyDescriptor.cs
- PolyLineSegment.cs
- Point4D.cs
- FileInfo.cs
- ServiceContractListItem.cs
- TextRangeEditLists.cs
- InvalidPipelineStoreException.cs
- ReachBasicContext.cs
- KeyValueConfigurationElement.cs
- NestPullup.cs
- __ComObject.cs
- ContentPropertyAttribute.cs
- SqlIdentifier.cs
- _Events.cs
- BindingContext.cs
- SoundPlayerAction.cs
- PeerCustomResolverSettings.cs
- Message.cs
- BinaryConverter.cs
- TemplateColumn.cs
- TagNameToTypeMapper.cs
- COM2ColorConverter.cs
- SqlGatherConsumedAliases.cs
- WindowsSlider.cs
- EnlistmentTraceIdentifier.cs
- FixedTextView.cs
- ObjectHandle.cs
- SqlBulkCopyColumnMapping.cs
- PageAsyncTaskManager.cs
- BatchServiceHost.cs
- UnmanagedMemoryStream.cs
- WizardPanelChangingEventArgs.cs
- WsatProxy.cs
- ProxyManager.cs
- XhtmlTextWriter.cs
- StringHandle.cs
- CodeMethodReturnStatement.cs
- InteropBitmapSource.cs
- ScalarOps.cs
- EntityDataReader.cs
- NameValueFileSectionHandler.cs
- PathHelper.cs
- LayoutEngine.cs
- _NetRes.cs
- WorkerProcess.cs
- DurableRuntimeValidator.cs
- CachedFontFace.cs
- RangeContentEnumerator.cs
- ReversePositionQuery.cs
- TrackPointCollection.cs
- OleAutBinder.cs
- InvalidEnumArgumentException.cs
- PerspectiveCamera.cs
- __ComObject.cs
- coordinatorfactory.cs
- Variant.cs
- ConnectionInterfaceCollection.cs
- ObjectDataSourceEventArgs.cs
- ListViewUpdatedEventArgs.cs
- httpstaticobjectscollection.cs
- XmlDocumentSerializer.cs
- ObjectRef.cs
- StorageEntityContainerMapping.cs
- AnnotationDocumentPaginator.cs
- HierarchicalDataTemplate.cs
- BitmapEffectOutputConnector.cs
- ControlIdConverter.cs
- DrawingCollection.cs
- HttpApplication.cs
- TimerEventSubscription.cs
- StoryFragments.cs
- SerializationObjectManager.cs
- SspiSecurityToken.cs
- AsymmetricKeyExchangeDeformatter.cs
- Control.cs
- EntityExpressionVisitor.cs
- PassportIdentity.cs
- IBuiltInEvidence.cs
- TextServicesContext.cs
- TransformationRules.cs
- BitmapImage.cs
- ProgressBarHighlightConverter.cs