using System.Collections.Generic;
public static void Main()
PropertyInfo[] propertyInfos;
propertyInfos = typeof(abc).GetProperties(BindingFlags.Public | BindingFlags.Static);
foreach(var prop in propertyInfos){
var _value =prop.GetValue(_name);
Console.WriteLine(_name+ ":" + _value);
public static string xyz {get; set;}
public static string zyx {get;set;}