Exemplo n.º 1
0
 static string FormatObject(object obj, MemberSet members, TypeAccessor accessor)
 {
     return($"{{ {string.Join(", ", members.Select(m => $"{m.Name} = {accessor[obj, m.Name]}"))} }}");
 }
Exemplo n.º 2
0
 public IEnumerable <string> GetMemberNames()
 {
     return(members.Select(a => a.Name));
 }