Wpis z mikrobloga

namespace Example
{
public class Klass
{
public string prop = "a";
public string method() {return "b";}
}
public Program
{
public static void Main(string[] args)
{
Assembly asm = Assembly.GetExecutingAssembly();
Type type = asm.GetType("Example.Klass");

PropertyInfo[] props = type.GetProperties();
foreach(var prop in props){
Console.WriteLine(prop);
}
}

}

}

Chcialbym aby to wypisalo mi wszystkie propsy w klasie, ale ich nie znajduje, czemu?
#csharp
  • 7