ThrowMissingRequiredConstructorParameter(YamlReader, Mark, Type, String) Method

Definition

Assembly SharpYaml.dll

Throws an exception when a required constructor parameter is missing during deserialization.

public static YamlException ThrowMissingRequiredConstructorParameter(YamlReader reader, Mark mappingStart, Type declaringType, string parameterName)

Parameters

reader
YamlReader

The reader positioned at the end of the mapping.

mappingStart
Mark

The start location of the mapping.

declaringType
Type

The target CLR type being deserialized.

parameterName
String

The constructor parameter name.

Returns