CSharp examples for System.Reflection:PropertyInfo
Get Properties
using System.Reflection; using System.Linq; using System.Collections.Generic; using System;/* w w w . j a va 2s.c o m*/ public class Main{ public static IEnumerable<PropertyInfo> GetProperties(this Type type) { return type.GetTypeInfo().DeclaredProperties; } }