Exemple #1
0
 private static Func <string> GetDisplayNameAccessor(MemberInfo member)
 {
     if (DisplayNameProvider == null && !ServiceProvider.TryGet(out DisplayNameProvider))
     {
         DisplayNameProvider = new DisplayNameProvider();
     }
     return(DisplayNameProvider.GetDisplayNameAccessor(member));
 }
Exemple #2
0
 private static Func <string> GetDisplayNameAccessor(MemberInfo member)
 {
     if (DisplayNameProvider == null && !ToolkitServiceProvider.TryGet(out DisplayNameProvider))
     {
         return(() => member.Name);
     }
     return(DisplayNameProvider.GetDisplayNameAccessor(member));
 }