Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ItemRecord
- {
- public string Name { get; }
- public string Description { get; }
- // etc
- }
- class Item
- {
- private ItemRecord itemRecord;
- public string Name { get { return itemRecord.Name; } }
- public string Description { get { return itemRecord.Description; } }
- Item(ItemRecord itemRecord) { this.itemRecord = itemRecord; }
- // etc
- }
Add Comment
Please, Sign In to add comment