internal static void Dump(AssistantDumper assistant, Base value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) return; assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.Base", true/*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
public static string Dump(Base value) { return value.Dump(); }