Exemplo n.º 1
0
        public MessageBuilder Build(AssemblyBuilder assembly)
        {
            var tb = new MessageBuilder(assembly, BaseType, Name);

            foreach (var node in Nodes)
            {
                if (node is PropertyDefinition pd)
                {
                    tb.AddMember(pd.Build(assembly));
                }
                else if (node is MessageDefinition td)
                {
                    tb.AddMember(td.Build(assembly));
                }
                else if (node is EnumDefinition ed)
                {
                    tb.AddMember(ed.Build(assembly));
                }
            }
            return(tb);
        }