Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ee0bc0d176
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (19 sloc) 0.44 kb
using System.Reflection;
using System;
namespace Test {
public class T {
public static int Main(string[] args) {
string name = "System.String";
if (args.Length > 0)
name = args [0];
Type t = Type.GetType (name);
PropertyInfo[] ms = t.GetProperties();
foreach (PropertyInfo m in ms) {
if (m.CanRead)
Console.Write ("Type "+m.PropertyType.Name+" ");
Console.WriteLine (m.Name);
}
return 0;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.