Merge pull request #5210 from alexrp/profiler-runtime-settings
[mono.git] / mono / tests / reflection-prop.cs
1 using System.Reflection;
2 using System;
3
4 namespace Test {
5         public class T {
6                 public static int Main(string[] args) {
7                         string name = "System.String";
8                         if (args.Length > 0)
9                                 name = args [0];
10                         Type t = Type.GetType (name);
11                         PropertyInfo[] ms = t.GetProperties();
12
13                         foreach (PropertyInfo m in ms) {
14                                 if (m.CanRead)
15                                         Console.Write ("Type "+m.PropertyType.Name+" ");
16                                 Console.WriteLine (m.Name);
17                         }
18                         return 0;
19                 }
20         }
21 }