Types in CilBrowser.Core.Configuration namespace: ConfigReader |
.class public abstract auto ansi sealed beforefieldinit CilBrowser.Core.Configuration.ConfigReader
extends [netstandard]System.Object
{
.method public hidebysig static class [netstandard]System.Collections.Generic.Dictionary`2<string, string> ReadFromFile(
string filePath
) cil managed
{
.maxstack 2
.locals init (string[] V_0,
class [netstandard]System.Collections.Generic.Dictionary`2<string, string> V_1)
nop
ldarg.0
call class [netstandard]System.Text.Encoding [netstandard]System.Text.Encoding::get_UTF8()
call string[] [netstandard]System.IO.File::ReadAllLines(string, class [netstandard]System.Text.Encoding)
stloc.0
ldloc.0
call class [netstandard]System.Collections.Generic.Dictionary`2<string, string> CilBrowser.Core.Configuration.ConfigReader::ReadValues(string[])
stloc.1
br.s IL_0001
IL_0001: ldloc.1
ret
}
.method public hidebysig static class [netstandard]System.Collections.Generic.Dictionary`2<string, string> ReadValues(
string[] lines
) cil managed
{
.maxstack 3
.locals init (class [netstandard]System.Collections.Generic.Dictionary`2<string, string> V_0,
int32 V_1,
string V_2,
int32 V_3,
string V_4,
string V_5,
bool V_6,
bool V_7,
bool V_8,
bool V_9,
bool V_10,
class [netstandard]System.Collections.Generic.Dictionary`2<string, string> V_11)
nop
newobj instance void class [netstandard]System.Collections.Generic.Dictionary`2<string, string>::.ctor()
stloc.0
ldc.i4.0
stloc.1
br IL_0007
IL_0001: nop
ldarg.0
ldloc.1
ldelem.ref
callvirt instance string [netstandard]System.String::Trim()
stloc.2
ldloc.2
callvirt instance int32 [netstandard]System.String::get_Length()
ldc.i4.0
ceq
stloc.s V_6
ldloc.s V_6
brfalse.s IL_0002
br.s IL_0006
IL_0002: ldloc.2
ldc.i4.0
callvirt instance char [netstandard]System.String::get_Chars(int32)
ldc.i4.s 59
ceq
stloc.s V_7
ldloc.s V_7
brfalse.s IL_0003
br.s IL_0006
IL_0003: ldloc.2
ldc.i4.s 61
callvirt instance int32 [netstandard]System.String::IndexOf(char)
stloc.3
ldloc.3
ldc.i4.0
cgt
ldc.i4.0
ceq
stloc.s V_8
ldloc.s V_8
brfalse.s IL_0004
br.s IL_0006
IL_0004: ldloc.2
ldc.i4.0
ldloc.3
callvirt instance string [netstandard]System.String::Substring(int32, int32)
callvirt instance string [netstandard]System.String::Trim()
stloc.s V_4
ldloc.2
ldloc.3
ldc.i4.1
add
callvirt instance string [netstandard]System.String::Substring(int32)
callvirt instance string [netstandard]System.String::Trim()
stloc.s V_5
ldloc.s V_4
callvirt instance int32 [netstandard]System.String::get_Length()
ldc.i4.0
ceq
stloc.s V_9
ldloc.s V_9
brfalse.s IL_0005
br.s IL_0006
IL_0005: ldloc.0
ldloc.s V_4
ldloc.s V_5
callvirt instance void class [netstandard]System.Collections.Generic.Dictionary`2<string, string>::set_Item(!0, !1)
nop
nop
IL_0006: ldloc.1
ldc.i4.1
add
stloc.1
IL_0007: ldloc.1
ldarg.0
ldlen
conv.i4
clt
stloc.s V_10
ldloc.s V_10
brtrue IL_0001
ldloc.0
stloc.s V_11
br.s IL_0008
IL_0008: ldloc.s V_11
ret
}
}
|