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
- Token.cs
- SoapHttpTransportImporter.cs
- InkCanvas.cs
- ModelUIElement3D.cs
- PageRequestManager.cs
- Barrier.cs
- WriteFileContext.cs
- ClaimTypes.cs
- PrtTicket_Editor.cs
- DelimitedListTraceListener.cs
- BrushConverter.cs
- PropertyConverter.cs
- WebPartEditorCancelVerb.cs
- IntSecurity.cs
- SEHException.cs
- SapiInterop.cs
- ResXBuildProvider.cs
- TypeNameConverter.cs
- ToolStripHighContrastRenderer.cs
- PeerObject.cs
- UserPersonalizationStateInfo.cs
- ListViewEditEventArgs.cs
- ColorAnimationUsingKeyFrames.cs
- DataGridViewHitTestInfo.cs
- BrushConverter.cs
- WebResourceAttribute.cs
- DbProviderFactories.cs
- SoapHeaderAttribute.cs
- BeginStoryboard.cs
- _ListenerAsyncResult.cs
- SchemaContext.cs
- DataSourceHelper.cs
- ReferenceSchema.cs
- InkCanvasSelectionAdorner.cs
- EventTrigger.cs
- SmtpException.cs
- HtmlUtf8RawTextWriter.cs
- SiteMapPath.cs
- StrongTypingException.cs
- ConfigurationManager.cs
- SessionEndedEventArgs.cs
- SystemTcpStatistics.cs
- WindowsListBox.cs
- FloaterParaClient.cs
- BitmapImage.cs
- DocumentationServerProtocol.cs
- BinHexEncoding.cs
- SamlAction.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- DataGridViewRowPrePaintEventArgs.cs
- EventLogPermission.cs
- MenuEventArgs.cs
- Lookup.cs
- EventWaitHandle.cs
- NetCodeGroup.cs
- _NetworkingPerfCounters.cs
- PreviewPrintController.cs
- EncryptedReference.cs
- AliasedSlot.cs
- StickyNoteHelper.cs
- CustomCredentialPolicy.cs
- RelatedView.cs
- HtmlFormWrapper.cs
- BlurBitmapEffect.cs
- TypeListConverter.cs
- XslAstAnalyzer.cs
- OleDbStruct.cs
- SqlCacheDependency.cs
- DirectionalLight.cs
- GraphicsPath.cs
- SelectedDatesCollection.cs
- CategoryGridEntry.cs
- ImageList.cs
- Base64Decoder.cs
- ISCIIEncoding.cs
- PropertyIdentifier.cs
- CompatibleIComparer.cs
- BooleanExpr.cs
- TypeHelper.cs
- ListViewGroupCollectionEditor.cs
- FormsAuthenticationTicket.cs
- KnownTypesHelper.cs
- OleDbParameter.cs
- BrushMappingModeValidation.cs
- WebPartConnectionsDisconnectVerb.cs
- ProviderCommandInfoUtils.cs
- BulletedListDesigner.cs
- DelegateSerializationHolder.cs
- SuppressIldasmAttribute.cs
- HtmlTextArea.cs
- GuidTagList.cs
- SafeFileHandle.cs
- AssemblySettingAttributes.cs
- EntityContainerEmitter.cs
- XmlNamedNodeMap.cs
- FormsAuthenticationEventArgs.cs
- Mapping.cs
- SQLInt64.cs
- ParenthesizePropertyNameAttribute.cs
- SetStoryboardSpeedRatio.cs