public static string Dump(ULongPrimitive value) { var assistant = new AssistantDumper(); Dump(assistant, value); return(assistant.ToString()); }
static internal ULongPrimitive Create(uint position) { var result = new ULongPrimitive(); Populate(result, position); return(result); }
static internal void Dump(AssistantDumper assistant, ULongPrimitive value, bool withSeparator = false) { assistant.IncrementDepth(); if (assistant.MaximumDepthExceeded()) { return; } assistant.AddStartObject(); assistant.AddType("Dogen.TestModels.CSharpModel.ULongPrimitive", true /*withSeparator*/); if (value == null) { assistant.Add("data", "<null>"); assistant.AddEndObject(); return; } assistant.AddKey("data"); assistant.AddPairSeparator(); assistant.AddStartObject(); assistant.Add("Value", value.Value); assistant.AddEndObject(); // data assistant.AddEndObject(); // main object assistant.HandleMemberSeparator(withSeparator); assistant.DecrementDepth(); }
static internal void Populate(ULongPrimitive value, uint position) { value.Value = AssistantSequenceGenerator.CreateULong(position); }