static internal NonFinalOrphan Create(uint position)
        {
            var result = new NonFinalOrphan();

            Populate(result, position);
            return(result);
        }
Esempio n. 2
0
        public static string Dump(NonFinalOrphan value)
        {
            var assistant = new AssistantDumper();

            Dump(assistant, value);
            return(assistant.ToString());
        }
Esempio n. 3
0
        static internal void Dump(AssistantDumper assistant, NonFinalOrphan value, bool withSeparator = false)
        {
            assistant.IncrementDepth();
            if (assistant.MaximumDepthExceeded())
            {
                return;
            }

            assistant.AddStartObject();
            assistant.AddType("CSharpRefImpl.CSharpModel.NonFinalOrphan", true /*withSeparator*/);
            if (value == null)
            {
                assistant.Add("data", "<null>");
                assistant.AddEndObject();
                return;
            }

            assistant.AddKey("data");
            assistant.AddPairSeparator();
            assistant.AddStartObject();
            assistant.Add("Prop0", value.Prop0);
            assistant.AddEndObject(); // data
            assistant.AddEndObject(); // main object
            assistant.HandleMemberSeparator(withSeparator);

            assistant.DecrementDepth();
        }
 static internal void Populate(NonFinalOrphan value, uint position)
 {
     value.Prop0 = AssistantSequenceGenerator.CreateInt(position + 0);
 }