示例#1
0
        public static string ToCode(this OpenIconicKind kind)
        {
            var idx = (int)kind;

            if (idx < 0 || idx >= Names.Length)
            {
                throw new ArgumentException(nameof(kind));
            }
            return(Names[idx]);
        }
示例#2
0
 public static PlantUmlText AsPlantUmlText(this OpenIconicKind kind)
 {
     return(new PlantUmlText(kind));
 }
示例#3
0
 public PlantUmlText(OpenIconicKind kind)
 {
     Text = "<&" + kind.ToCode() + ">";
 }