public override bool Equals(object obj) { var line = obj as Line; if (line == null) return false; return this == line; }