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); }
public MessageWriter(CodeWriter c, GroupSchema group, MessageSchema msg) { this.c = c; this.group = group; this.msg = msg; }