Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace DotNetPlayground
- {
- public class Product : ICloneable
- {
- public string Name { get; set; }
- public float Price { get; set; }
- public object Clone()
- {
- return this.MemberwiseClone();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement