aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/IntermediateFieldValue.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/WixToolset.Data/IntermediateFieldValue.cs30
1 files changed, 6 insertions, 24 deletions
diff --git a/src/WixToolset.Data/IntermediateFieldValue.cs b/src/WixToolset.Data/IntermediateFieldValue.cs
index b09903dc..ca109e7f 100644
--- a/src/WixToolset.Data/IntermediateFieldValue.cs
+++ b/src/WixToolset.Data/IntermediateFieldValue.cs
@@ -15,35 +15,17 @@ namespace WixToolset.Data
15 15
16 public IntermediateFieldValue PreviousValue { get; internal set; } 16 public IntermediateFieldValue PreviousValue { get; internal set; }
17 17
18 public static explicit operator bool(IntermediateFieldValue value) 18 public static explicit operator bool(IntermediateFieldValue value) => value.AsBool();
19 {
20 return value.AsBool();
21 }
22 19
23 public static explicit operator bool? (IntermediateFieldValue value) 20 public static explicit operator bool? (IntermediateFieldValue value) => value.AsNullableBool();
24 {
25 return value.AsNullableBool();
26 }
27 21
28 public static explicit operator int(IntermediateFieldValue value) 22 public static explicit operator int(IntermediateFieldValue value) => value.AsNumber();
29 {
30 return value.AsNumber();
31 }
32 23
33 public static explicit operator int? (IntermediateFieldValue value) 24 public static explicit operator int? (IntermediateFieldValue value) => value.AsNullableNumber();
34 {
35 return value.AsNullableNumber();
36 }
37 25
38 public static explicit operator IntermediateFieldPathValue(IntermediateFieldValue value) 26 public static explicit operator IntermediateFieldPathValue(IntermediateFieldValue value) => value.AsPath();
39 {
40 return value.AsPath();
41 }
42 27
43 public static explicit operator string(IntermediateFieldValue value) 28 public static explicit operator string(IntermediateFieldValue value) => value.AsString();
44 {
45 return value.AsString();
46 }
47 29
48 internal static IntermediateFieldValue Deserialize(JsonObject jsonObject, Uri baseUri, IntermediateFieldType type) 30 internal static IntermediateFieldValue Deserialize(JsonObject jsonObject, Uri baseUri, IntermediateFieldType type)
49 { 31 {