Skip to content

Instantly share code, notes, and snippets.

@zHaytam
Created July 3, 2020 10:53
Show Gist options
  • Save zHaytam/2a2da566e9019e599396b48b5e35d694 to your computer and use it in GitHub Desktop.
Save zHaytam/2a2da566e9019e599396b48b5e35d694 to your computer and use it in GitHub Desktop.
// Generated Rectangle class omitted
void main()
{
Rectangle rectangle = new Rectangle(10.0, 5.0);
Rectangle rectangle2 = rectangle.<>Clone();
rectangle2.Width = 20.0;
Rectangle rectangle3 = rectangle2;
Rectangle rectangle4 = rectangle3.<>Clone();
rectangle4.Height = 10.0;
Rectangle rectangle5 = rectangle4;
Console.WriteLine(rectangle.Equals(rectangle3));
Console.WriteLine(rectangle3.Equals(rectangle5));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment