Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ToString() [9/9]

override string System.ValueTuple< T1, T2, T3, T4, T5, T6, T7, TRest >.ToString ( )
inline

Definition at line 2078 of file ValueTuple.cs.

2079 {
2080 string[] obj;
2081 T1 val;
2082 object obj2;
2083 if (Rest is IValueTupleInternal)
2084 {
2085 obj = new string[16]
2086 {
2087 "(", null, null, null, null, null, null, null, null, null,
2088 null, null, null, null, null, null
2089 };
2090 ref T1 reference = ref Item1;
2091 val = default(T1);
2092 if (val == null)
2093 {
2094 val = reference;
2095 reference = ref val;
2096 if (val == null)
2097 {
2098 obj2 = null;
2099 goto IL_005b;
2100 }
2101 }
2102 obj2 = reference.ToString();
2103 goto IL_005b;
2104 }
2105 string[] obj3 = new string[17]
2106 {
2107 "(", null, null, null, null, null, null, null, null, null,
2108 null, null, null, null, null, null, null
2109 };
2110 ref T1 reference2 = ref Item1;
2111 val = default(T1);
2112 object obj4;
2113 if (val == null)
2114 {
2115 val = reference2;
2116 reference2 = ref val;
2117 if (val == null)
2118 {
2119 obj4 = null;
2120 goto IL_0258;
2121 }
2122 }
2123 obj4 = reference2.ToString();
2124 goto IL_0258;
2125 IL_015f:
2126 object obj5;
2127 obj[9] = (string)obj5;
2128 obj[10] = ", ";
2129 ref T6 reference3 = ref Item6;
2130 T6 val2 = default(T6);
2131 object obj6;
2132 if (val2 == null)
2133 {
2134 val2 = reference3;
2136 if (val2 == null)
2137 {
2138 obj6 = null;
2139 goto IL_01a4;
2140 }
2141 }
2142 obj6 = reference3.ToString();
2143 goto IL_01a4;
2144 IL_0318:
2145 object obj7;
2146 obj3[7] = (string)obj7;
2147 obj3[8] = ", ";
2148 ref T5 reference4 = ref Item5;
2149 T5 val3 = default(T5);
2150 object obj8;
2151 if (val3 == null)
2152 {
2153 val3 = reference4;
2155 if (val3 == null)
2156 {
2157 obj8 = null;
2158 goto IL_035c;
2159 }
2160 }
2161 obj8 = reference4.ToString();
2162 goto IL_035c;
2163 IL_009b:
2164 object obj9;
2165 obj[3] = (string)obj9;
2166 obj[4] = ", ";
2167 ref T3 reference5 = ref Item3;
2168 T3 val4 = default(T3);
2169 object obj10;
2170 if (val4 == null)
2171 {
2172 val4 = reference5;
2174 if (val4 == null)
2175 {
2176 obj10 = null;
2177 goto IL_00db;
2178 }
2179 }
2180 obj10 = reference5.ToString();
2181 goto IL_00db;
2182 IL_005b:
2183 obj[1] = (string)obj2;
2184 obj[2] = ", ";
2185 ref T2 reference6 = ref Item2;
2186 T2 val5 = default(T2);
2187 if (val5 == null)
2188 {
2189 val5 = reference6;
2191 if (val5 == null)
2192 {
2193 obj9 = null;
2194 goto IL_009b;
2195 }
2196 }
2197 obj9 = reference6.ToString();
2198 goto IL_009b;
2199 IL_0258:
2200 obj3[1] = (string)obj4;
2201 obj3[2] = ", ";
2202 ref T2 reference7 = ref Item2;
2203 val5 = default(T2);
2204 object obj11;
2205 if (val5 == null)
2206 {
2207 val5 = reference7;
2209 if (val5 == null)
2210 {
2211 obj11 = null;
2212 goto IL_0298;
2213 }
2214 }
2215 obj11 = reference7.ToString();
2216 goto IL_0298;
2217 IL_00db:
2218 obj[5] = (string)obj10;
2219 obj[6] = ", ";
2220 ref T4 reference8 = ref Item4;
2221 T4 val6 = default(T4);
2222 object obj12;
2223 if (val6 == null)
2224 {
2225 val6 = reference8;
2227 if (val6 == null)
2228 {
2229 obj12 = null;
2230 goto IL_011b;
2231 }
2232 }
2233 obj12 = reference8.ToString();
2234 goto IL_011b;
2235 IL_03a1:
2236 object obj13;
2237 obj3[11] = (string)obj13;
2238 obj3[12] = ", ";
2239 ref T7 reference9 = ref Item7;
2240 T7 val7 = default(T7);
2241 object obj14;
2242 if (val7 == null)
2243 {
2244 val7 = reference9;
2246 if (val7 == null)
2247 {
2248 obj14 = null;
2249 goto IL_03e6;
2250 }
2251 }
2252 obj14 = reference9.ToString();
2253 goto IL_03e6;
2254 IL_035c:
2255 obj3[9] = (string)obj8;
2256 obj3[10] = ", ";
2257 ref T6 reference10 = ref Item6;
2258 val2 = default(T6);
2259 if (val2 == null)
2260 {
2261 val2 = reference10;
2263 if (val2 == null)
2264 {
2265 obj13 = null;
2266 goto IL_03a1;
2267 }
2268 }
2269 obj13 = reference10.ToString();
2270 goto IL_03a1;
2271 IL_0298:
2272 obj3[3] = (string)obj11;
2273 obj3[4] = ", ";
2274 ref T3 reference11 = ref Item3;
2275 val4 = default(T3);
2276 object obj15;
2277 if (val4 == null)
2278 {
2279 val4 = reference11;
2281 if (val4 == null)
2282 {
2283 obj15 = null;
2284 goto IL_02d8;
2285 }
2286 }
2287 obj15 = reference11.ToString();
2288 goto IL_02d8;
2289 IL_01e9:
2290 object obj16;
2291 obj[13] = (string)obj16;
2292 obj[14] = ", ";
2293 obj[15] = ((IValueTupleInternal)(object)Rest).ToStringEnd();
2294 return string.Concat(obj);
2295 IL_01a4:
2296 obj[11] = (string)obj6;
2297 obj[12] = ", ";
2298 ref T7 reference12 = ref Item7;
2299 val7 = default(T7);
2300 if (val7 == null)
2301 {
2302 val7 = reference12;
2304 if (val7 == null)
2305 {
2306 obj16 = null;
2307 goto IL_01e9;
2308 }
2309 }
2310 obj16 = reference12.ToString();
2311 goto IL_01e9;
2312 IL_011b:
2313 obj[7] = (string)obj12;
2314 obj[8] = ", ";
2315 ref T5 reference13 = ref Item5;
2316 val3 = default(T5);
2317 if (val3 == null)
2318 {
2319 val3 = reference13;
2321 if (val3 == null)
2322 {
2323 obj5 = null;
2324 goto IL_015f;
2325 }
2326 }
2327 obj5 = reference13.ToString();
2328 goto IL_015f;
2329 IL_02d8:
2330 obj3[5] = (string)obj15;
2331 obj3[6] = ", ";
2332 ref T4 reference14 = ref Item4;
2333 val6 = default(T4);
2334 if (val6 == null)
2335 {
2336 val6 = reference14;
2338 if (val6 == null)
2339 {
2340 obj7 = null;
2341 goto IL_0318;
2342 }
2343 }
2344 obj7 = reference14.ToString();
2345 goto IL_0318;
2346 IL_03e6:
2347 obj3[13] = (string)obj14;
2348 obj3[14] = ", ";
2349 obj3[15] = Rest.ToString();
2350 obj3[16] = ")";
2351 return string.Concat(obj3);
2352 }
string IValueTupleInternal. ToStringEnd()
Definition ValueTuple.cs:90

References System.ValueTuple< T1, T2, T3, T4, T5, T6, T7, TRest >.Item1, System.ValueTuple< T1, T2, T3, T4, T5, T6, T7, TRest >.Item2, System.ValueTuple< T1, T2, T3, T4, T5, T6, T7, TRest >.Item3, System.ValueTuple< T1, T2, T3, T4, T5, T6, T7, TRest >.Item4, System.ValueTuple< T1, T2, T3, T4, T5, T6, T7, TRest >.Item5, System.ValueTuple< T1, T2, T3, T4, T5, T6, T7, TRest >.Item6, System.ValueTuple< T1, T2, T3, T4, T5, T6, T7, TRest >.Item7, System.obj, System.ValueTuple< T1, T2, T3, T4, T5, T6, T7, TRest >.Rest, and System.ValueTuple< T1, T2, T3, T4, T5, T6, T7, TRest >.ToStringEnd().