Exemple #1
0
 public static string[] All()
 {
     var markups = new Markups();
     var fields = typeof(Markups).GetFields(BindingFlags.Public | BindingFlags.Static);
     var result = new List<string>();
     foreach (var field in fields)
     {
         if (field.IsLiteral && !field.IsInitOnly)
         {
             result.Add(field.GetValue(markups) as string);
         }
     }
     return result.ToArray();
 }
Exemple #2
0
        public static string[] All()
        {
            var markups = new Markups();
            var fields  = typeof(Markups).GetFields(BindingFlags.Public | BindingFlags.Static);
            var result  = new List <string>();

            foreach (var field in fields)
            {
                if (field.IsLiteral && !field.IsInitOnly)
                {
                    result.Add(field.GetValue(markups) as string);
                }
            }
            return(result.ToArray());
        }