Beispiel #1
0
        private static EnumNode GetEnumNode(EnumDeclarationSyntax EachEnum)
        {
            EnumNode enumnode = new EnumNode();
            enumnode.Name = EachEnum.Identifier.ToString();
            foreach (var member in EachEnum.Members)
            {
                FieldNode f = new FieldNode();
                f.Name = member.Identifier.ToString();
                enumnode.Fields.Add(f);
            }

            return enumnode;
        }
Beispiel #2
0
 public EnumFigure(EnumNode enumnode)
     : base(enumnode, type)
 {
     base.color = new Cairo.Color(0.879, 0.88, 0.90, 1.0);
 }