CSharp examples for System.Reflection:PropertyInfo
Get Property Names
using System.Reflection; using System.Linq; using System;/*w w w . j a va 2 s . c o m*/ public class Main{ public static string[] GetPropertyNames(Type type) { PropertyInfo[] propertyInfos = type.GetProperties(); return propertyInfos.Select(property => property.Name).ToArray(); } }