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
- DeclarationUpdate.cs
- IsolatedStorageFileStream.cs
- securitymgrsite.cs
- ExceptionValidationRule.cs
- EventArgs.cs
- ThaiBuddhistCalendar.cs
- HierarchicalDataSourceControl.cs
- TypeForwardedToAttribute.cs
- Inflater.cs
- _WinHttpWebProxyDataBuilder.cs
- XmlSchemaInferenceException.cs
- MessageHeaderDescription.cs
- SoapSchemaImporter.cs
- RepeaterDataBoundAdapter.cs
- StringHelper.cs
- BaseAppDomainProtocolHandler.cs
- PiiTraceSource.cs
- RegisteredArrayDeclaration.cs
- AnonymousIdentificationSection.cs
- TreeView.cs
- WriteFileContext.cs
- ValidatingReaderNodeData.cs
- BitmapScalingModeValidation.cs
- Token.cs
- SymbolResolver.cs
- FlowDocumentView.cs
- HttpHandlersSection.cs
- PartitionResolver.cs
- CompressedStack.cs
- AlphaSortedEnumConverter.cs
- CalendarData.cs
- MembershipSection.cs
- UnmanagedMarshal.cs
- SiteMapProvider.cs
- DrawingBrush.cs
- ClientTargetCollection.cs
- BufferBuilder.cs
- Point.cs
- OdbcEnvironmentHandle.cs
- ReflectionPermission.cs
- FormViewInsertEventArgs.cs
- LoginUtil.cs
- DataGridClipboardCellContent.cs
- TypeSystem.cs
- OperationCanceledException.cs
- Attributes.cs
- SettingsPropertyValue.cs
- ScrollChrome.cs
- DbDataReader.cs
- DataGridViewLayoutData.cs
- StorageInfo.cs
- WpfWebRequestHelper.cs
- ThicknessConverter.cs
- DataBinding.cs
- SocketElement.cs
- Timer.cs
- DeferredElementTreeState.cs
- exports.cs
- OptimizerPatterns.cs
- PriorityItem.cs
- CqlLexer.cs
- GroupBox.cs
- DragDrop.cs
- ItemCheckedEvent.cs
- PolyQuadraticBezierSegment.cs
- SponsorHelper.cs
- UpdateCommandGenerator.cs
- PropertyInfoSet.cs
- ProtocolsConfigurationEntry.cs
- EdmRelationshipRoleAttribute.cs
- Floater.cs
- Int32KeyFrameCollection.cs
- Enum.cs
- StateMachineAction.cs
- NativeMethods.cs
- ToolBar.cs
- PEFileReader.cs
- ClientBuildManagerCallback.cs
- AccessibleObject.cs
- AssemblyContextControlItem.cs
- AnnotationComponentChooser.cs
- AssociationTypeEmitter.cs
- InfoCardTrace.cs
- ImageListStreamer.cs
- SelectingProviderEventArgs.cs
- SqlOuterApplyReducer.cs
- ProtectedProviderSettings.cs
- ConfigurationStrings.cs
- ReadOnlyHierarchicalDataSource.cs
- ClusterSafeNativeMethods.cs
- RequiredAttributeAttribute.cs
- StylusButtonEventArgs.cs
- _NTAuthentication.cs
- JsonSerializer.cs
- OlePropertyStructs.cs
- CngUIPolicy.cs
- Manipulation.cs
- FileDialogPermission.cs
- BinHexEncoding.cs
- StreamWithDictionary.cs