Class YamlSerializer
Inheritance
YamlSerializer
Namespace:Microsoft.DocAsCode.YamlSerialization
Assembly:Microsoft.DocAsCode.YamlSerialization.dll
Syntax
public class YamlSerializer
Constructors
YamlSerializer(SerializationOptions, INamingConvention)
Declaration
public YamlSerializer(SerializationOptions options = SerializationOptions.None, INamingConvention namingConvention = null)
Parameters
Type |
Name |
Description |
YamlDotNet.Serialization.SerializationOptions |
options |
|
YamlDotNet.Serialization.INamingConvention |
namingConvention |
|
Methods
Serialize(TextWriter, Object)
Declaration
public void Serialize(TextWriter writer, object graph)
Parameters
Serialize(IEmitter, Object)
Declaration
public void Serialize(IEmitter emitter, object graph)
Parameters
Type |
Name |
Description |
YamlDotNet.Core.IEmitter |
emitter |
|
Object |
graph |
|
SerializeValue(IEmitter, Object, Type)
Declaration
public void SerializeValue(IEmitter emitter, object value, Type type)
Parameters
Type |
Name |
Description |
YamlDotNet.Core.IEmitter |
emitter |
|
Object |
value |
|
Type |
type |
|
Extension Methods