-
Notifications
You must be signed in to change notification settings - Fork 14
/
RuntimeMultiConvertExceptionEventArgs.cs
83 lines (74 loc) · 2.34 KB
/
RuntimeMultiConvertExceptionEventArgs.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace QuickConverter
{
public class RuntimeMultiConvertExceptionEventArgs : QuickConverterEventArgs
{
public override QuickConverterEventType Type { get { return QuickConverterEventType.RuntimeCodeException; } }
public object P0 { get; private set; }
public object P1 { get; private set; }
public object P2 { get; private set; }
public object P3 { get; private set; }
public object P4 { get; private set; }
public object P5 { get; private set; }
public object P6 { get; private set; }
public object P7 { get; private set; }
public object P8 { get; private set; }
public object P9 { get; private set; }
public object V0 { get; private set; }
public object V1 { get; private set; }
public object V2 { get; private set; }
public object V3 { get; private set; }
public object V4 { get; private set; }
public object V5 { get; private set; }
public object V6 { get; private set; }
public object V7 { get; private set; }
public object V8 { get; private set; }
public object V9 { get; private set; }
public object Value { get; private set; }
public object Parameter { get; private set; }
public DynamicMultiConverter Converter { get; private set; }
public Exception Exception { get; private set; }
public string DebugView { get; private set; }
internal RuntimeMultiConvertExceptionEventArgs(string expression, string debugView, object[] p, int[] pIndices, object value, object[] values, object parameter, DynamicMultiConverter converter, Exception exception)
: base(expression)
{
DebugView = debugView;
if (p != null)
{
for (int i = 0; i < p.Length; ++i)
{
switch (pIndices[i])
{
case 0: P0 = p[i]; break;
case 1: P1 = p[i]; break;
case 2: P2 = p[i]; break;
case 3: P3 = p[i]; break;
case 4: P4 = p[i]; break;
case 5: P5 = p[i]; break;
case 6: P6 = p[i]; break;
case 7: P7 = p[i]; break;
case 8: P8 = p[i]; break;
case 9: P9 = p[i]; break;
}
}
}
V0 = values[0];
V1 = values[1];
V2 = values[2];
V3 = values[3];
V4 = values[4];
V5 = values[5];
V6 = values[6];
V7 = values[7];
V8 = values[8];
V9 = values[9];
Value = value;
Parameter = parameter;
Converter = converter;
Exception = exception;
}
}
}