Created
March 8, 2020 23:21
-
-
Save TheFo2sh/79510ba668653b79d2b15712c4431237 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Model:ICloneable | |
{ | |
public string Item { get; set; } | |
public int Price { get; set; } | |
public object Clone() | |
{ | |
return new Model() | |
{ | |
Price = this.Price, | |
Item = this.Item | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment