Exemplo n.º 1
0
        static internal AssociationInPackage Create(uint position)
        {
            var result = new AssociationInPackage();

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

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

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

            assistant.AddKey("data");
            assistant.AddPairSeparator();
            assistant.AddStartObject();
            assistant.AddKey("Prop0");
            assistant.AddPairSeparator();
            CSharpRefImpl.CSharpModel.PrimitiveBuiltinsDumper.Dump(assistant, value.Prop0, true /*withSeparator*/);
            assistant.AddKey("Prop1");
            assistant.AddPairSeparator();
            CSharpRefImpl.CSharpModel.ComplexBuiltinsDumper.Dump(assistant, value.Prop1, true /*withSeparator*/);
            assistant.AddKey("Prop2");
            assistant.AddPairSeparator();
            CSharpRefImpl.CSharpModel.Package1.Class1Dumper.Dump(assistant, value.Prop2);
            assistant.AddEndObject(); // data
            assistant.AddEndObject(); // main object
            assistant.HandleMemberSeparator(withSeparator);

            assistant.DecrementDepth();
        }
Exemplo n.º 4
0
 static internal void Populate(AssociationInPackage value, uint position)
 {
     value.Prop0 = CSharpRefImpl.CSharpModel.PrimitiveBuiltinsSequenceGenerator.Create(position + 0);
     value.Prop1 = CSharpRefImpl.CSharpModel.ComplexBuiltinsSequenceGenerator.Create(position + 1);
     value.Prop2 = CSharpRefImpl.CSharpModel.Package1.Class1SequenceGenerator.Create(position + 2);
 }