Guest User

Untitled

a guest
Feb 17th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. class ItemRecord
  2. {
  3. public string Name { get; }
  4. public string Description { get; }
  5.  
  6. // etc
  7. }
  8.  
  9. class Item
  10. {
  11. private ItemRecord itemRecord;
  12.  
  13. public string Name { get { return itemRecord.Name; } }
  14. public string Description { get { return itemRecord.Description; } }
  15.  
  16. Item(ItemRecord itemRecord) { this.itemRecord = itemRecord; }
  17.  
  18. // etc
  19. }
Add Comment
Please, Sign In to add comment