static void Main() { var metadata = new Metadata <My1>(); Console.WriteLine( $"{metadata.GetProperyName(_ => _.A001)} " + $"{metadata.GetProperyName(_ => _.A002)} " + $"{metadata.GetProperyName(_ => _.A003)} " + $"{QuickName.GetProperyInfo(() => My3.A011).Name} " + $"{QuickName.GetProperyInfo(() => My3.A012).Name}"); }
public static PropertyInfo GetProperyInfo <T, TPropery>(this Metadata <T> metadata, Func <T, TPropery> func) => QuickName.GetProperyInfo(func);