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
- SqlFacetAttribute.cs
- PackageDigitalSignature.cs
- StateMachine.cs
- IfJoinedCondition.cs
- RegexGroup.cs
- Literal.cs
- SessionParameter.cs
- dataobject.cs
- DPCustomTypeDescriptor.cs
- UpdateManifestForBrowserApplication.cs
- ToolStripProgressBar.cs
- GcSettings.cs
- XmlAnyElementAttributes.cs
- WindowsTokenRoleProvider.cs
- CodeExpressionStatement.cs
- QilLoop.cs
- HandlerWithFactory.cs
- SpellerInterop.cs
- Buffer.cs
- WindowsAltTab.cs
- ProfileEventArgs.cs
- TypeDescriptionProviderAttribute.cs
- TokenizerHelper.cs
- OleDbError.cs
- Query.cs
- StylusPlugInCollection.cs
- DictionaryBase.cs
- MarkupCompiler.cs
- CommentEmitter.cs
- InstanceDataCollectionCollection.cs
- SqlDataSourceFilteringEventArgs.cs
- PrivilegeNotHeldException.cs
- AssociationSetMetadata.cs
- CompilerState.cs
- WebConfigurationManager.cs
- WebPartTracker.cs
- MobileCapabilities.cs
- MessageDecoder.cs
- DataGrid.cs
- XmlEnumAttribute.cs
- PrimaryKeyTypeConverter.cs
- WsdlBuildProvider.cs
- XmlSchemaAttribute.cs
- PersonalizationStateInfoCollection.cs
- NegationPusher.cs
- HtmlTitle.cs
- DotExpr.cs
- CompilationLock.cs
- HierarchicalDataTemplate.cs
- PropertyItem.cs
- BindingMemberInfo.cs
- XmlDataImplementation.cs
- Point3DCollection.cs
- RolePrincipal.cs
- DataTableClearEvent.cs
- ChannelServices.cs
- TypeHelper.cs
- SystemKeyConverter.cs
- shaperfactoryquerycachekey.cs
- DocumentEventArgs.cs
- PngBitmapDecoder.cs
- HandoffBehavior.cs
- ImageFormat.cs
- NativeMethods.cs
- EmptyElement.cs
- ToolBar.cs
- XmlDesigner.cs
- ProviderCommandInfoUtils.cs
- PostBackOptions.cs
- EventData.cs
- SimpleModelProvider.cs
- BrowserCapabilitiesCodeGenerator.cs
- IndentedWriter.cs
- ExeContext.cs
- ItemChangedEventArgs.cs
- FileReader.cs
- TraceData.cs
- CardSpacePolicyElement.cs
- DependencyPropertyConverter.cs
- ExtractorMetadata.cs
- ReceiveErrorHandling.cs
- WindowsRegion.cs
- ItemCheckEvent.cs
- CodeStatement.cs
- HelpInfo.cs
- ColorMap.cs
- SHA512.cs
- DataGridView.cs
- EventRecordWrittenEventArgs.cs
- FixedSOMPage.cs
- TableCellCollection.cs
- XmlConvert.cs
- NameTable.cs
- TransactionContextValidator.cs
- Baml2006SchemaContext.cs
- ConnectionPointCookie.cs
- TemplateBaseAction.cs
- _ListenerAsyncResult.cs
- StatusBarPanel.cs
- SiteMapPathDesigner.cs