Guest User

Untitled

a guest
Nov 24th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public class EasyModel
  2. {
  3. public override string ToString()
  4. {
  5. return string.Join(", ", GetType().GetProperties()
  6. .Where(x => x.CanRead)
  7. .Select(x => $"{x.Name}: {x.GetValue(this)}"));
  8. }
  9. }
Add Comment
Please, Sign In to add comment