Skip to content

Commit 8fc97f8

Browse files
committed
implemented ToString override
1 parent e1e6c35 commit 8fc97f8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

RetailCoder.VBE/Extensions/Selection.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ public QualifiedSelection(QualifiedModuleName qualifiedName, Selection selection
1616

1717
private readonly Selection _selection;
1818
public Selection Selection { get { return _selection; } }
19+
20+
public override string ToString()
21+
{
22+
return string.Concat(QualifiedName, Selection);
23+
}
1924
}
2025

2126
[ComVisible(false)]
@@ -44,5 +49,10 @@ public Selection(int startLine, int startColumn, int endLine, int endColumn)
4449
public int EndColumn { get { return _endColumn; } }
4550

4651
public int LineCount { get { return _endLine - _startLine + 1; } }
52+
53+
public override string ToString()
54+
{
55+
return string.Format("Start: L{0}C{1} End: L{2}C{3}", _startLine, _startColumn, _endLine, _endLine);
56+
}
4757
}
4858
}

0 commit comments

Comments
 (0)