Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. using System;
  2.  
  3. namespace DotNetPlayground
  4. {
  5. public class Product : ICloneable
  6. {
  7. public string Name { get; set; }
  8.  
  9. public float Price { get; set; }
  10.  
  11. public object Clone()
  12. {
  13. return this.MemberwiseClone();
  14. }
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement