Class YamlDeserializer
A façade for the YAML library with the standard configuration.
Inheritance
YamlDeserializer
Namespace:Microsoft.DocAsCode.YamlSerialization
Assembly:Microsoft.DocAsCode.YamlSerialization.dll
Syntax
public sealed class YamlDeserializer
Constructors
|
Improve this Doc
View Source
YamlDeserializer(IObjectFactory, INamingConvention, Boolean, Boolean)
Declaration
public YamlDeserializer(IObjectFactory objectFactory = null, INamingConvention namingConvention = null, bool ignoreUnmatched = false, bool ignoreNotFoundAnchor = true)
Parameters
Type |
Name |
Description |
YamlDotNet.Serialization.IObjectFactory |
objectFactory |
|
YamlDotNet.Serialization.INamingConvention |
namingConvention |
|
Boolean |
ignoreUnmatched |
|
Boolean |
ignoreNotFoundAnchor |
|
Properties
|
Improve this Doc
View Source
NodeDeserializers
Declaration
public IList<INodeDeserializer> NodeDeserializers { get; }
Property Value
Type |
Description |
IList<YamlDotNet.Serialization.INodeDeserializer> |
|
|
Improve this Doc
View Source
TypeResolvers
Declaration
public IList<INodeTypeResolver> TypeResolvers { get; }
Property Value
Type |
Description |
IList<YamlDotNet.Serialization.INodeTypeResolver> |
|
|
Improve this Doc
View Source
ValueDeserializer
Declaration
public IValueDeserializer ValueDeserializer { get; }
Property Value
Type |
Description |
YamlDotNet.Serialization.IValueDeserializer |
|
Methods
|
Improve this Doc
View Source
Deserialize(TextReader, Type, IValueDeserializer)
Declaration
public object Deserialize(TextReader input, Type type, IValueDeserializer deserializer = null)
Parameters
Type |
Name |
Description |
TextReader |
input |
|
Type |
type |
|
YamlDotNet.Serialization.IValueDeserializer |
deserializer |
|
Returns
|
Improve this Doc
View Source
Deserialize(TextReader, IValueDeserializer)
Declaration
public object Deserialize(TextReader input, IValueDeserializer deserializer = null)
Parameters
Type |
Name |
Description |
TextReader |
input |
|
YamlDotNet.Serialization.IValueDeserializer |
deserializer |
|
Returns
|
Improve this Doc
View Source
Deserialize(EventReader, Type, IValueDeserializer)
Deserializes an object of the specified type.
Declaration
public object Deserialize(EventReader reader, Type type, IValueDeserializer deserializer = null)
Parameters
Type |
Name |
Description |
YamlDotNet.Core.EventReader |
reader |
The EventReader where to deserialize the object.
|
Type |
type |
The static type of the object to deserialize.
|
YamlDotNet.Serialization.IValueDeserializer |
deserializer |
|
Returns
Type |
Description |
Object |
Returns the deserialized object.
|
|
Improve this Doc
View Source
Deserialize(EventReader, IValueDeserializer)
Declaration
public object Deserialize(EventReader reader, IValueDeserializer deserializer = null)
Parameters
Type |
Name |
Description |
YamlDotNet.Core.EventReader |
reader |
|
YamlDotNet.Serialization.IValueDeserializer |
deserializer |
|
Returns
|
Improve this Doc
View Source
Deserialize<T>(TextReader, IValueDeserializer)
Declaration
public T Deserialize<T>(TextReader input, IValueDeserializer deserializer = null)
Parameters
Type |
Name |
Description |
TextReader |
input |
|
YamlDotNet.Serialization.IValueDeserializer |
deserializer |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Deserialize<T>(EventReader, IValueDeserializer)
Declaration
public T Deserialize<T>(EventReader reader, IValueDeserializer deserializer = null)
Parameters
Type |
Name |
Description |
YamlDotNet.Core.EventReader |
reader |
|
YamlDotNet.Serialization.IValueDeserializer |
deserializer |
|
Returns
Type Parameters
|
Improve this Doc
View Source
RegisterTagMapping(String, Type)
Declaration
public void RegisterTagMapping(string tag, Type type)
Parameters
|
Improve this Doc
View Source
RegisterTypeConverter(IYamlTypeConverter)
Declaration
public void RegisterTypeConverter(IYamlTypeConverter typeConverter)
Parameters
Type |
Name |
Description |
YamlDotNet.Serialization.IYamlTypeConverter |
typeConverter |
|
Extension Methods