-
Notifications
You must be signed in to change notification settings - Fork 0
/
Operation.OperationResult.cs
62 lines (55 loc) · 1.44 KB
/
Operation.OperationResult.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DNQ.VirtualizedItemsSource
{
partial class Operation<T>
{
private class OperationResult<U>
: IOperationResult<U>
{
public OperationResult(Operation<U> operation, U[] resultSet, IBounds newBounds, bool mustRefresh)
{
this.Operation = operation;
NewBounds = newBounds;
ResultSet = resultSet;
MustRefresh = mustRefresh;
Exception = null;
}
public OperationResult(Operation<U> operation, Exception exc)
{
Operation = operation;
Exception = exc;
NewBounds = null;
ResultSet = null;
MustRefresh = false;
}
public Exception Exception
{
get;
private set;
}
public Operation<U> Operation
{
get;
private set;
}
public U[] ResultSet
{
get;
private set;
}
public IBounds NewBounds
{
get;
private set;
}
public bool MustRefresh
{
get;
private set;
}
}
}
}