-
Notifications
You must be signed in to change notification settings - Fork 2
/
scratch.cs
112 lines (110 loc) · 3.85 KB
/
scratch.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
using System;
using System.Collections.Generic;
namespace SolutionItems
{
public class scratch
{
public void foo()
{
var request = new ClassToStringify
{
AChar = (char)0,
AGuid = Guid.Parse("537da78a-8b8d-4479-96af-a36c7e9b41af"),
AString = "String",
Boolean = true,
Date = new DateTime(1970, 1, 1, 0, 0, 0),
DateTimeOffset = DateTimeOffset.Parse("3/18/2019 5:34:03 AM -05:00"),
Decimal = 1.1m,
NullableBoolean = false,
NullableInt = 7,
Number = 7,
TestEnum = TestEnum.Blue,
AnObnoxiousObjectWhosePropertiesThrowExceptions = new TwitchyObject
{
},
AnotherNestedObject = new ClassToStringify
{
AChar = (char)0,
AGuid = Guid.Parse("00000000-0000-0000-0000-000000000000"),
AString = null,
Boolean = false,
Date = new DateTime(1, 1, 1, 0, 0, 0),
DateTimeOffset = DateTimeOffset.Parse("1/1/0001 12:00:00 AM +00:00"),
Decimal = 2.2m,
NullableBoolean = null,
NullableInt = null,
Number = 99,
TestEnum = (TestEnum)0,
AnObnoxiousObjectWhosePropertiesThrowExceptions = null,
AnotherNestedObject = null,
NestedObject = null,
NullObject = null,
Items = new List<String> {
"goo",
"goo",
"gachoo",
},
ListOfObjects = null,
NestedLists = new List<List<String>> {
new List<String> {
"blue",
},
},
},
//NestedObject = new ClassToStringify() <-- bidirectional reference found
NullObject = null,
Items = new List<String> {
"foo",
"bar",
},
ListOfObjects = new List<ClassToStringify> {
new ClassToStringify {
AChar=(char)0,
AGuid=Guid.Parse("00000000-0000-0000-0000-000000000000"),
AString="First",
Boolean=false,
Date=new DateTime(2019, 3, 18, 5, 34, 3),
DateTimeOffset=DateTimeOffset.Parse("1/1/0001 12:00:00 AM +00:00"),
Decimal=0m,
NullableBoolean=null,
NullableInt=null,
Number=0,
TestEnum=(TestEnum)0,
AnObnoxiousObjectWhosePropertiesThrowExceptions=null,
AnotherNestedObject=null,
NestedObject=null,
NullObject=null,
Items=null,
ListOfObjects=null,
NestedLists=null,
},
new ClassToStringify {
AChar=(char)0,
AGuid=Guid.Parse("00000000-0000-0000-0000-000000000000"),
AString="Second",
Boolean=false,
Date=new DateTime(2018, 3, 18, 5, 34, 3),
DateTimeOffset=DateTimeOffset.Parse("1/1/0001 12:00:00 AM +00:00"),
Decimal=0m,
NullableBoolean=null,
NullableInt=null,
Number=0,
TestEnum=(TestEnum)0,
AnObnoxiousObjectWhosePropertiesThrowExceptions=null,
AnotherNestedObject=null,
NestedObject=null,
NullObject=null,
Items=null,
ListOfObjects=null,
NestedLists=null,
},
},
NestedLists = new List<List<String>> {
new List<String> {
"foo",
},
},
};
}
}
}