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
- BaseResourcesBuildProvider.cs
- DataBindingHandlerAttribute.cs
- SafeEventLogWriteHandle.cs
- SelectionItemPattern.cs
- HttpContextBase.cs
- MessageBuffer.cs
- TextTreeRootNode.cs
- Operators.cs
- RefreshPropertiesAttribute.cs
- Atom10FormatterFactory.cs
- DmlSqlGenerator.cs
- RegisteredArrayDeclaration.cs
- ExponentialEase.cs
- SafeNativeMemoryHandle.cs
- SafeFileMappingHandle.cs
- SevenBitStream.cs
- BaseDataBoundControl.cs
- OciEnlistContext.cs
- PublishLicense.cs
- OpacityConverter.cs
- BrushConverter.cs
- BaseParser.cs
- Internal.cs
- FileLoadException.cs
- Crypto.cs
- COM2PictureConverter.cs
- NegotiateStream.cs
- UriTemplateLiteralPathSegment.cs
- RoutedEventArgs.cs
- UnionCqlBlock.cs
- FamilyTypeface.cs
- CodeAccessPermission.cs
- ResourcePart.cs
- ISFClipboardData.cs
- DependencyPropertyKind.cs
- ProcessModelInfo.cs
- XpsSerializerWriter.cs
- InvariantComparer.cs
- SettingsPropertyCollection.cs
- SafeTokenHandle.cs
- RelationshipFixer.cs
- HandlerWithFactory.cs
- StaticFileHandler.cs
- XmlILCommand.cs
- DataGridViewButtonColumn.cs
- SqlCacheDependencySection.cs
- ResourceDescriptionAttribute.cs
- ScrollBar.cs
- TrackingServices.cs
- RelationshipType.cs
- ContractDescription.cs
- DefaultObjectMappingItemCollection.cs
- DataGridRowDetailsEventArgs.cs
- XNodeValidator.cs
- Graphics.cs
- NestPullup.cs
- RsaKeyIdentifierClause.cs
- DrawingCollection.cs
- ChooseAction.cs
- MarkupCompilePass1.cs
- ClaimSet.cs
- FixedSOMContainer.cs
- TypedDatasetGenerator.cs
- ToolStripOverflowButton.cs
- AlignmentXValidation.cs
- SqlFunctionAttribute.cs
- TypeToArgumentTypeConverter.cs
- TaiwanCalendar.cs
- BitmapScalingModeValidation.cs
- Brush.cs
- FileSystemWatcher.cs
- TypeLoadException.cs
- ConfigXmlDocument.cs
- WebBrowsableAttribute.cs
- Rules.cs
- NativeRightsManagementAPIsStructures.cs
- WasNotInstalledException.cs
- SystemUnicastIPAddressInformation.cs
- SettingsSavedEventArgs.cs
- WriteTimeStream.cs
- PathFigureCollectionConverter.cs
- SudsParser.cs
- PermissionRequestEvidence.cs
- ValidatingReaderNodeData.cs
- FixedStringLookup.cs
- LongAverageAggregationOperator.cs
- IList.cs
- UriExt.cs
- QuaternionValueSerializer.cs
- SafeArrayTypeMismatchException.cs
- ObjectListFieldCollection.cs
- RoleServiceManager.cs
- GlobalizationSection.cs
- WsdlParser.cs
- DesignTimeSiteMapProvider.cs
- HtmlUtf8RawTextWriter.cs
- TraceXPathNavigator.cs
- SettingsBindableAttribute.cs
- EnumBuilder.cs
- TreeViewTemplateSelector.cs