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
- ClientBuildManagerCallback.cs
- XmlReflectionImporter.cs
- TemplateColumn.cs
- CompositeDataBoundControl.cs
- XmlTextReaderImpl.cs
- SqlConnectionFactory.cs
- UnicastIPAddressInformationCollection.cs
- SafeProcessHandle.cs
- IdentityManager.cs
- OutputWindow.cs
- RawStylusSystemGestureInputReport.cs
- HttpCachePolicyElement.cs
- FormClosingEvent.cs
- TypedServiceChannelBuilder.cs
- EditorPartChrome.cs
- ListViewItem.cs
- XmlDocumentFragment.cs
- ImageInfo.cs
- OrderedDictionaryStateHelper.cs
- SelectionItemProviderWrapper.cs
- CreateDataSourceDialog.cs
- NameTable.cs
- ProtectedProviderSettings.cs
- TokenBasedSet.cs
- DayRenderEvent.cs
- WindowsClientCredential.cs
- BamlRecordReader.cs
- PointValueSerializer.cs
- SelectionList.cs
- SqlInfoMessageEvent.cs
- GridViewAutomationPeer.cs
- GrammarBuilderDictation.cs
- ControlCollection.cs
- ConfigPathUtility.cs
- XmlHierarchicalEnumerable.cs
- __FastResourceComparer.cs
- XmlDictionary.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ReadOnlyMetadataCollection.cs
- UIPropertyMetadata.cs
- SerializationInfo.cs
- Executor.cs
- ExpressionHelper.cs
- SystemNetworkInterface.cs
- BitmapEffectState.cs
- LockedActivityGlyph.cs
- SymDocumentType.cs
- SoapCodeExporter.cs
- ZipIOCentralDirectoryFileHeader.cs
- SqlClientPermission.cs
- SHA1CryptoServiceProvider.cs
- AmbientLight.cs
- XmlSchemaComplexType.cs
- __FastResourceComparer.cs
- ReachNamespaceInfo.cs
- Int64Converter.cs
- NetStream.cs
- WaitForChangedResult.cs
- DataObjectAttribute.cs
- CodeCommentStatement.cs
- PageEventArgs.cs
- CompressionTransform.cs
- SafeReversePInvokeHandle.cs
- PreservationFileReader.cs
- TextEvent.cs
- DataObjectAttribute.cs
- DependencyPropertyAttribute.cs
- ImageMap.cs
- Renderer.cs
- EntityDataSourceColumn.cs
- WebReferencesBuildProvider.cs
- XPathNodeInfoAtom.cs
- SurrogateEncoder.cs
- SqlDataReader.cs
- PrimitiveCodeDomSerializer.cs
- Package.cs
- OracleTransaction.cs
- FlowDocumentPaginator.cs
- X509SubjectKeyIdentifierClause.cs
- SafeCryptHandles.cs
- SponsorHelper.cs
- CompressEmulationStream.cs
- DocumentViewerBaseAutomationPeer.cs
- InternalConfigSettingsFactory.cs
- WindowsToolbarItemAsMenuItem.cs
- TokenFactoryFactory.cs
- BinaryMethodMessage.cs
- UniqueIdentifierService.cs
- BitmapEffect.cs
- OleDbRowUpdatedEvent.cs
- NetworkAddressChange.cs
- DataGridViewCellStyleChangedEventArgs.cs
- UnsafeNativeMethods.cs
- Enum.cs
- TabletDevice.cs
- Stack.cs
- PriorityQueue.cs
- SessionIDManager.cs
- HtmlImageAdapter.cs
- MaskedTextProvider.cs