public void WriteYaml(Core.IEmitter emitter, object value, System.Type type) { var guid = (System.Guid)value; emitter.Emit(new Core.Events.Scalar(guid.ToString("D"))); }
public void WriteYaml(Core.IEmitter emitter, IObjectDescriptor value, IObjectGraphTraversalStrategy traversalStrategy, IObjectGraphVisitor visitor) { var guid = (System.Guid)value.Value; emitter.Emit(new Core.Events.Scalar(null, null, guid.ToString("D"), jsonCompatible ? ScalarStyle.DoubleQuoted : ScalarStyle.Any, true, false)); }
public void WriteYaml(Core.IEmitter emitter, object value, System.Type type) { var guid = (System.Guid)value; emitter.Emit(new Core.Events.Scalar(null, null, guid.ToString("D"), jsonCompatible ? ScalarStyle.DoubleQuoted : ScalarStyle.Any, true, false)); }
public void WriteYaml(Core.IEmitter emitter, object value, System.Type type) { var v = (Mugen3D.Core.Number)value; emitter.Emit(new Core.Events.Scalar(null, null, v.ToString(), ScalarStyle.Any, true, false)); }