Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 |
|
---|
6 | namespace Microsoft.Research.DynamicDataDisplay.Common.DataSearch
|
---|
7 | {
|
---|
8 | internal struct SearchResult1d
|
---|
9 | {
|
---|
10 | public static SearchResult1d Empty
|
---|
11 | {
|
---|
12 | get { return new SearchResult1d { Index = -1 }; }
|
---|
13 | }
|
---|
14 |
|
---|
15 | public int Index { get; internal set; }
|
---|
16 |
|
---|
17 | public bool IsEmpty
|
---|
18 | {
|
---|
19 | get { return Index == -1; }
|
---|
20 | }
|
---|
21 |
|
---|
22 | public override string ToString()
|
---|
23 | {
|
---|
24 | if (IsEmpty)
|
---|
25 | return "Empty";
|
---|
26 |
|
---|
27 | return String.Format("Index = {0}", Index);
|
---|
28 | }
|
---|
29 | }
|
---|
30 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.