Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Base / System / Windows / Markup / Primitives / MarkupObject.cs / 1 / MarkupObject.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2005 // // File: MarkupObject.cs // // Contents: API for iterating a tree of objects for serialization // // Created: 04/28/2005 [....] // //----------------------------------------------------------------------- using System; using System.ComponentModel; using System.Collections.Generic; using System.Reflection; using System.Text; using System.Windows.Markup; using MS.Internal.WindowsBase; namespace System.Windows.Markup.Primitives { ////// An enumeration class used by serialization to walk the a tree of objects. Markupobject's represent objects /// and using XML based serialization they would be written as elements. /// public abstract class MarkupObject { ////// Prevent external specialization /// [FriendAccessAllowed] // Used by ElementMarkupObject and others in Framework internal MarkupObject() { } ////// The CLR type for the object. For example, an item representing a Button would return the equivilient of /// typeof(System.Windows.Button). /// public abstract Type ObjectType { get; } ////// The instance of the object represented by the this MarkupObject. The type of the object might not be /// ObjectType if the instance represents a factory creating instances of type ObjectType. /// public abstract object Instance { get; } ////// An enumeration the items properties. Only properties that have significant (serializable) properties are /// returned. Properties that have their default value, or are otherwise not visible to serialization, are not /// returned. /// /// The first 0 to N properties returned by the Properties enumeration might have the IsConstructorArgument /// set. These properties should be used as the parameters to the ItemType's constructor with N parameters. If /// the first property doesn't have the IsConstructorArgument set, the default constructor of the ItemType /// should be used. /// /// If the MarkupItem is in a dictionary, one of the properties of the item will have an IsKey set to true. /// This is the value for the dictionary key. /// public virtual IEnumerableProperties { get { return GetProperties(true /*mapToConstructorArgs*/); } } internal abstract IEnumerable GetProperties(bool mapToConstructorArgs); /// /// Assigns a root context to use for ValueSerializer's that are used to return, for example, the string value /// of a property or key. All value serializaers will be looked up via this context if present. /// /// /// The context that will be passed to ValueSerializer's and TypeConverter's when converting text to a string /// public abstract void AssignRootContext(IValueSerializerContext context); ////// The attributes associated with the markup item. /// public abstract AttributeCollection Attributes { get; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2005 // // File: MarkupObject.cs // // Contents: API for iterating a tree of objects for serialization // // Created: 04/28/2005 [....] // //----------------------------------------------------------------------- using System; using System.ComponentModel; using System.Collections.Generic; using System.Reflection; using System.Text; using System.Windows.Markup; using MS.Internal.WindowsBase; namespace System.Windows.Markup.Primitives { ////// An enumeration class used by serialization to walk the a tree of objects. Markupobject's represent objects /// and using XML based serialization they would be written as elements. /// public abstract class MarkupObject { ////// Prevent external specialization /// [FriendAccessAllowed] // Used by ElementMarkupObject and others in Framework internal MarkupObject() { } ////// The CLR type for the object. For example, an item representing a Button would return the equivilient of /// typeof(System.Windows.Button). /// public abstract Type ObjectType { get; } ////// The instance of the object represented by the this MarkupObject. The type of the object might not be /// ObjectType if the instance represents a factory creating instances of type ObjectType. /// public abstract object Instance { get; } ////// An enumeration the items properties. Only properties that have significant (serializable) properties are /// returned. Properties that have their default value, or are otherwise not visible to serialization, are not /// returned. /// /// The first 0 to N properties returned by the Properties enumeration might have the IsConstructorArgument /// set. These properties should be used as the parameters to the ItemType's constructor with N parameters. If /// the first property doesn't have the IsConstructorArgument set, the default constructor of the ItemType /// should be used. /// /// If the MarkupItem is in a dictionary, one of the properties of the item will have an IsKey set to true. /// This is the value for the dictionary key. /// public virtual IEnumerableProperties { get { return GetProperties(true /*mapToConstructorArgs*/); } } internal abstract IEnumerable GetProperties(bool mapToConstructorArgs); /// /// Assigns a root context to use for ValueSerializer's that are used to return, for example, the string value /// of a property or key. All value serializaers will be looked up via this context if present. /// /// /// The context that will be passed to ValueSerializer's and TypeConverter's when converting text to a string /// public abstract void AssignRootContext(IValueSerializerContext context); ////// The attributes associated with the markup item. /// public abstract AttributeCollection Attributes { get; } } } // 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
- SequenceDesigner.cs
- ObjectListFieldsPage.cs
- DataChangedEventManager.cs
- XPathNodeInfoAtom.cs
- CodeSubDirectoriesCollection.cs
- DragStartedEventArgs.cs
- DirectionalLight.cs
- TextDecorations.cs
- Highlights.cs
- WindowsRebar.cs
- ReadOnlyHierarchicalDataSourceView.cs
- MSAAWinEventWrap.cs
- WebPartCancelEventArgs.cs
- DbBuffer.cs
- LowerCaseStringConverter.cs
- DataListItemCollection.cs
- TextLineResult.cs
- TextDecoration.cs
- PnrpPermission.cs
- DataBoundControlHelper.cs
- ItemContainerGenerator.cs
- IsolationInterop.cs
- InvalidComObjectException.cs
- TreeNodeMouseHoverEvent.cs
- ZipIORawDataFileBlock.cs
- Globals.cs
- CodeExporter.cs
- InOutArgument.cs
- FormsAuthenticationEventArgs.cs
- HtmlShim.cs
- XPathNavigatorReader.cs
- BaseTypeViewSchema.cs
- SystemDropShadowChrome.cs
- InternalConfigRoot.cs
- BindingCollection.cs
- ContentFilePart.cs
- MetabaseServerConfig.cs
- StorageRoot.cs
- HttpGetServerProtocol.cs
- ButtonDesigner.cs
- LazyInitializer.cs
- PolyQuadraticBezierSegment.cs
- ArrayElementGridEntry.cs
- BackoffTimeoutHelper.cs
- ConfigXmlSignificantWhitespace.cs
- EventToken.cs
- CryptoSession.cs
- EncoderReplacementFallback.cs
- TemplatedEditableDesignerRegion.cs
- DesignerForm.cs
- CompilerParameters.cs
- SplitterCancelEvent.cs
- PersonalizationStateInfo.cs
- FormConverter.cs
- EntityDataSourceDesignerHelper.cs
- BinarySerializer.cs
- OpenTypeLayout.cs
- AssemblyBuilder.cs
- MbpInfo.cs
- XsdCachingReader.cs
- SqlWorkflowPersistenceService.cs
- WebPartConnectionsDisconnectVerb.cs
- FlowDocumentScrollViewer.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- BuiltInPermissionSets.cs
- TextServicesHost.cs
- ImageMapEventArgs.cs
- TableLayoutPanelResizeGlyph.cs
- WebControlToolBoxItem.cs
- BaseDataBoundControlDesigner.cs
- DocumentApplicationJournalEntry.cs
- LocationReference.cs
- InputProviderSite.cs
- MergeFilterQuery.cs
- TabPage.cs
- XPathExpr.cs
- SupportingTokenChannel.cs
- ValidationErrorCollection.cs
- XmlSchemaValidationException.cs
- XmlSecureResolver.cs
- CardSpacePolicyElement.cs
- TextSelection.cs
- SocketAddress.cs
- SoundPlayer.cs
- Mappings.cs
- SendAgentStatusRequest.cs
- ProvidePropertyAttribute.cs
- ChangeTracker.cs
- _HeaderInfo.cs
- DataGridViewComboBoxCell.cs
- SharedConnectionListener.cs
- SplayTreeNode.cs
- ContextMenuService.cs
- ThreadAbortException.cs
- PageContentCollection.cs
- XmlRawWriterWrapper.cs
- WindowPatternIdentifiers.cs
- EntityContainerEmitter.cs
- XmlTextReaderImpl.cs
- DataSourceXmlTextReader.cs