C
Chris Becker
Could someone please tell me what the C# equivalent of this VB.NET code is:
Dim aPropInfo() As System.Reflection.PropertyInfo
aPropInfo = GetType(System.Drawing.Color).GetProperties
This is what I came up with:
Color dummy = new Color();
System.Reflection.PropertyInfo[] aPropInfo =
dummy.GetType().GetProperties();
but maybe there is a more elegant way of getting the type without creating a
dummy Color object?
Dim aPropInfo() As System.Reflection.PropertyInfo
aPropInfo = GetType(System.Drawing.Color).GetProperties
This is what I came up with:
Color dummy = new Color();
System.Reflection.PropertyInfo[] aPropInfo =
dummy.GetType().GetProperties();
but maybe there is a more elegant way of getting the type without creating a
dummy Color object?