terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ TryParseEnum()

static bool System.Enum.TryParseEnum ( Type enumType,
string value,
bool ignoreCase,
Enum::EnumResult parseResult )
inlinestaticprivate

Definition at line 171 of file Enum.cs.

172 {
173 if (!true)
174 {
175 }
176 if (false)
177 {
178 if (enumType != null)
179 {
180 string text;
181 if (text._stringLength == 0)
182 {
183 goto IL_0060;
184 }
185 long num = 0L;
186 bool flag = char.IsDigit(text[(int)num]);
187 long num2 = 0L;
188 char c = text[(int)num2];
189 long num3 = 0L;
190 char c2 = text[(int)num3];
192 Type type;
193 object obj = Convert.ChangeType(text, type, invariantCulture);
194 object obj2;
195 ignoreCase.m_value = obj2 != null;
196 }
197 return ignoreCase;
198 }
199 IL_0060:
200 return "Type must be a type provided by the runtime." != null;
201 }
class f__AnonymousType0<< Count > j__TPar
static object ChangeType(object value, TypeCode typeCode, IFormatProvider provider)
Definition Convert.cs:73
static CultureInfo InvariantCulture

References System.Convert.ChangeType(), System.Globalization.CultureInfo.InvariantCulture, j__TPar, System.L, System.obj, and System.text.