Questions tagged [icloneable]

Questions regarding .NET ICloneable Interface

.NET ICloneable Interface

Supports cloning, which creates a new instance of a class with the same value as an existing instance.

Docs: https://msdn.microsoft.com/en-us/library/system.icloneable%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396

Famous question: Proper way to implement ICloneable

47 questions
0
votes
1 answer

'does not implement interface member 'System.ICloneable.Clone()'

I'm having a small issue calling in the Icloneable interface I've told the class I want to use the interface as such: class UnitClass: ICloneable and have placed in a function for Cloning public Object Clone() { return…
dingbat
  • 1
  • 1
  • 2
-1
votes
1 answer

How do you take a copy of a dictionary's KeyValuePair without it maintaining a reference to the original dictionary? Cloneable KVP?

So i have a program which starts to build a dictionary of possible paths from a given starting point back to the same point using an exact number of steps. I start out by adding a dictionary row for each unique combination of start and end steps,…
mattisrowe
  • 149
  • 2
  • 14
1 2 3
4