예제 #1
0
        static void addSchema(Type GroupType, MessageAttribute messageAttr)
        {
            if (groupMap.ContainsKey(GroupType.Name))
            {
                throw new Exception($"Group name {GroupType.Name} is duplicated.");
            }

            GroupSchema group = new GroupSchema(GroupType, messageAttr);

            groupMap.Add(group.Name, group);
        }
예제 #2
0
 public MessageWriter(CodeWriter c, GroupSchema group, MessageSchema msg)
 {
     this.c     = c;
     this.group = group;
     this.msg   = msg;
 }