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
- AssociatedControlConverter.cs
- ToolTipService.cs
- NameNode.cs
- WindowsSolidBrush.cs
- DesignerDataColumn.cs
- SigningCredentials.cs
- ConsoleTraceListener.cs
- TextRunCacheImp.cs
- StringUtil.cs
- FormatPage.cs
- FontDialog.cs
- CheckBoxRenderer.cs
- InputGestureCollection.cs
- TypeReference.cs
- XmlText.cs
- StorageConditionPropertyMapping.cs
- NameValuePermission.cs
- Accessible.cs
- ServiceObjectContainer.cs
- InternalDuplexChannelFactory.cs
- DataGridViewRowStateChangedEventArgs.cs
- EventLogPermission.cs
- AnnotationHelper.cs
- ToolStripDropDownButton.cs
- XmlILTrace.cs
- PassportIdentity.cs
- ScrollPattern.cs
- ListItemsPage.cs
- BindingCollection.cs
- CalendarDesigner.cs
- ListView.cs
- SoapAttributeAttribute.cs
- AttributedMetaModel.cs
- SymmetricAlgorithm.cs
- Rotation3D.cs
- EndpointIdentity.cs
- RelOps.cs
- DbFunctionCommandTree.cs
- RectAnimationBase.cs
- SystemUnicastIPAddressInformation.cs
- SrgsRule.cs
- AutomationPropertyChangedEventArgs.cs
- XmlNullResolver.cs
- DynamicValidator.cs
- AssemblyBuilder.cs
- CollectionView.cs
- DataTableReader.cs
- DesignerSelectionListAdapter.cs
- SecurityContext.cs
- PersonalizationProviderHelper.cs
- DetailsViewDeletedEventArgs.cs
- NetworkInterface.cs
- Decoder.cs
- DesignTimeVisibleAttribute.cs
- GetPageCompletedEventArgs.cs
- RotateTransform3D.cs
- SamlConstants.cs
- DataServiceKeyAttribute.cs
- VisualSerializer.cs
- RadioButtonStandardAdapter.cs
- ExtenderProvidedPropertyAttribute.cs
- ConfigXmlText.cs
- BitmapSourceSafeMILHandle.cs
- FlagPanel.cs
- SmtpFailedRecipientsException.cs
- PageAdapter.cs
- InstrumentationTracker.cs
- HtmlTextBoxAdapter.cs
- DiagnosticTrace.cs
- ConfigurationErrorsException.cs
- PolyLineSegment.cs
- SymbolType.cs
- SafeEventLogReadHandle.cs
- WhitespaceSignificantCollectionAttribute.cs
- EntityContainerEmitter.cs
- AudioDeviceOut.cs
- PermissionToken.cs
- SqlParameter.cs
- ServiceRoute.cs
- ArrayWithOffset.cs
- ImmComposition.cs
- SqlBuilder.cs
- PageHandlerFactory.cs
- DocumentViewerAutomationPeer.cs
- VisualBasicSettingsHandler.cs
- ListDictionaryInternal.cs
- XPathNavigator.cs
- ChannelServices.cs
- FileFormatException.cs
- GiveFeedbackEvent.cs
- FaultDescriptionCollection.cs
- FormsAuthenticationEventArgs.cs
- Baml6ConstructorInfo.cs
- Opcode.cs
- WorkflowServiceNamespace.cs
- RenderDataDrawingContext.cs
- IntSecurity.cs
- PeerInvitationResponse.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- PeerDuplexChannelListener.cs