Clone
Introduction
Code Example
using FlatRedBall.Graphics;public class WeightedObject : PositionedObject
{
// We'll make it public so
// our code is shorter
public float Weight;
public override string ToString()
{
return "Position:" + Position + " Weight:" + Weight;
}
}
What does Clone actually copy?
Cloning Reference Objects
Last updated
Was this helpful?