public static void Write<T>(this IYamlStream stream, string key, ref T value, DataStyle style = DataStyle.Any)
where T : struct
{
stream.Serialize(ref key);
var emitter = stream.Emitter;
stream.SerializeContext.Serialize(ref emitter, value, style);
}
public static void Write<T>(this IYamlStream stream, string key, ref T value, DataStyle style = DataStyle.Any)
where T : class
public static void Write<T>(this IYamlStream stream, string key, ref T value, DataStyle style = DataStyle.Any)
where T : struct
{
stream.Serialize(ref key);
var emitter = stream.Emitter;
stream.SerializeContext.Serialize(ref emitter, value, style);
}
public static void Write<T>(this IYamlStream stream, string key, ref T value, DataStyle style = DataStyle.Any)
where T : class