C# Class Myre.Serialisation.Dom

A document object model which can describe a serialised object.
显示文件 Open project: TomGillen/Myre Class Usage Examples

Public Methods

Method Description
Load ( Stream stream ) : Dom
Load ( Stream stream, IKernel kernel ) : Dom
Load ( string input ) : Dom
Load ( string input, IKernel kernel ) : Dom
Save ( ) : string
Save ( Stream stream ) : void

Private Methods

Method Description
CreateDictionary ( Type type, List children ) : Node
CreateList ( Type type, List children ) : Node
Dom ( IKernel kernel ) : System
EnumerateTypes ( Assembly a ) : System.Type[]
FindTypeByName ( string name, Type genericParameters, bool isArray ) : Type
GetAssemblies ( ) : IEnumerable
NewLine ( Stream stream, int indent ) : void
ParseCollection ( StreamReader reader, Type type, Dom dom ) : Node
ParseIdentifier ( StreamReader stream ) : string
ParseItem ( StreamReader reader, Dom dom ) : NodeReference
ParseLiteral ( StreamReader reader, Type type ) : Node
ParseNode ( StreamReader reader, Type type, Dom dom ) : Node
ParseObject ( StreamReader reader, Type type, Dom dom ) : Node
ParseSharedReferences ( StreamReader reader, Dom dom ) : void
ParseTypeName ( StreamReader stream ) : Type
SkipWhitespace ( StreamReader reader ) : void
Write ( Stream stream, string value ) : void
WriteSharedReferences ( Stream stream ) : void

Method Details

Load() public method

public Load ( Stream stream ) : Dom
stream Stream
return Dom

Load() public static method

public static Load ( Stream stream, IKernel kernel ) : Dom
stream Stream
kernel IKernel
return Dom

Load() public static method

public static Load ( string input ) : Dom
input string
return Dom

Load() public static method

public static Load ( string input, IKernel kernel ) : Dom
input string
kernel IKernel
return Dom

Save() public method

public Save ( ) : string
return string

Save() public method

public Save ( Stream stream ) : void
stream Stream
return void