Guest User

Untitled

a guest
May 20th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. using System;
  2.  
  3. public class Entity
  4. {
  5. public Entity(Guid id, string name)
  6. {
  7. Id = id;
  8. Name = name;
  9. }
  10.  
  11. public Guid Id { get; private set; }
  12. public string Name { get; private set; }
  13. public bool IsValid
  14. {
  15. get
  16. {
  17. return Valid();
  18. }
  19. }
  20.  
  21. private bool Valid()
  22. {
  23. return false;
  24. }
  25. }
Add Comment
Please, Sign In to add comment