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
- CheckBoxList.cs
- LineInfo.cs
- SecurityPolicySection.cs
- ScriptResourceHandler.cs
- Rule.cs
- FontFaceLayoutInfo.cs
- SecurityStandardsManager.cs
- IssuanceLicense.cs
- Style.cs
- CompressionTransform.cs
- RelationshipDetailsRow.cs
- UInt16.cs
- RelationshipManager.cs
- SoapSchemaMember.cs
- ExternalFile.cs
- TextStore.cs
- RichTextBox.cs
- NamedObject.cs
- SqlProviderServices.cs
- ControlUtil.cs
- SQLMembershipProvider.cs
- ImageSourceValueSerializer.cs
- XamlRtfConverter.cs
- StorageBasedPackageProperties.cs
- PixelFormatConverter.cs
- ToolStripPanelRow.cs
- SQLDecimal.cs
- Canvas.cs
- WindowPatternIdentifiers.cs
- ToolStripAdornerWindowService.cs
- DesignerLabelAdapter.cs
- WinEventTracker.cs
- DataGridPageChangedEventArgs.cs
- BooleanToVisibilityConverter.cs
- XmlNode.cs
- SetStateDesigner.cs
- ComboBox.cs
- ExpandedWrapper.cs
- FaultCode.cs
- XmlEncodedRawTextWriter.cs
- DataGridTextBoxColumn.cs
- HtmlSelect.cs
- TransformPattern.cs
- AxisAngleRotation3D.cs
- BinaryUtilClasses.cs
- XmlDictionaryReaderQuotas.cs
- ISO2022Encoding.cs
- WebServiceTypeData.cs
- TemplatedAdorner.cs
- AjaxFrameworkAssemblyAttribute.cs
- Parser.cs
- Duration.cs
- FilterQuery.cs
- SchemaMapping.cs
- PreviewControlDesigner.cs
- WsdlInspector.cs
- ObjectStateManagerMetadata.cs
- ApplicationContext.cs
- SqlXml.cs
- WebPartDisplayModeCancelEventArgs.cs
- ArgumentOutOfRangeException.cs
- WebDisplayNameAttribute.cs
- ipaddressinformationcollection.cs
- LoginUtil.cs
- CollectionBase.cs
- QueueSurrogate.cs
- BaseCodeDomTreeGenerator.cs
- SystemUdpStatistics.cs
- AvTrace.cs
- ObjectNavigationPropertyMapping.cs
- CodePageEncoding.cs
- SafeRegistryHandle.cs
- XPathBuilder.cs
- Zone.cs
- XmlDataImplementation.cs
- ShaderRenderModeValidation.cs
- TextElementAutomationPeer.cs
- MatrixUtil.cs
- XmlUTF8TextWriter.cs
- DocumentPage.cs
- TopClause.cs
- ContextQuery.cs
- ZipIOLocalFileBlock.cs
- Rect3D.cs
- EventEntry.cs
- InvalidWorkflowException.cs
- BrowserCapabilitiesCompiler.cs
- ServiceOperationParameter.cs
- TrustManagerMoreInformation.cs
- MenuEventArgs.cs
- DataSourceGroupCollection.cs
- DataViewManager.cs
- mda.cs
- CodeAttributeArgument.cs
- GlyphShapingProperties.cs
- SqlCommand.cs
- Mouse.cs
- BinaryObjectReader.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ColumnHeader.cs