private bool SetLine(ref Line savedLine, Line newLine) { /* * Set the new given line to the corner's saved line. * Return true if it was able to be set, false if not. * * When a corner is assigned a line, also set the line's corner */ bool lineSet = false; if (savedLine == null) { savedLine = newLine; newLine.AddCorner(this); lineSet = true; } return(lineSet); }