Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .method public hidebysig static char[] GetMostFrequentlyUsedChars(string s,
- int32 minFreqCOunt) cil managed
- {
- // Размер кода: 204 (0xcc)
- .maxstack 4
- .locals init ([0] class TerrasoftTest.Program/'<>c__DisplayClass1_0' 'CS$<>8__locals0',
- [1] class [mscorlib]System.Collections.Generic.Dictionary`2<char,int32> freq,
- [2] string V_2,
- [3] int32 V_3,
- [4] char c,
- [5] bool V_5,
- [6] char V_6,
- [7] int32 V_7,
- [8] char[] V_8)
- IL_0000: newobj instance void TerrasoftTest.Program/'<>c__DisplayClass1_0'::.ctor()
- IL_0005: stloc.0
- IL_0006: ldloc.0
- IL_0007: ldarg.1
- IL_0008: stfld int32 TerrasoftTest.Program/'<>c__DisplayClass1_0'::minFreqCOunt
- IL_000d: nop
- IL_000e: newobj instance void class [mscorlib]System.Collections.Generic.Dictionary`2<char,int32>::.ctor()
- IL_0013: stloc.1
- IL_0014: nop
- IL_0015: ldarg.0
- IL_0016: stloc.2
- IL_0017: ldc.i4.0
- IL_0018: stloc.3
- IL_0019: br.s IL_005d
- IL_001b: ldloc.2
- IL_001c: ldloc.3
- IL_001d: callvirt instance char [mscorlib]System.String::get_Chars(int32)
- IL_0022: stloc.s c
- IL_0024: ldloc.1
- IL_0025: ldloc.s c
- IL_0027: callvirt instance bool class [mscorlib]System.Collections.Generic.Dictionary`2<char,int32>::ContainsKey(!0)
- IL_002c: stloc.s V_5
- IL_002e: ldloc.s V_5
- IL_0030: brfalse.s IL_004f
- IL_0032: ldloc.1
- IL_0033: ldloc.s c
- IL_0035: stloc.s V_6
- IL_0037: dup
- IL_0038: ldloc.s V_6
- IL_003a: callvirt instance !1 class [mscorlib]System.Collections.Generic.Dictionary`2<char,int32>::get_Item(!0)
- IL_003f: stloc.s V_7
- IL_0041: ldloc.s V_6
- IL_0043: ldloc.s V_7
- IL_0045: ldc.i4.1
- IL_0046: add
- IL_0047: callvirt instance void class [mscorlib]System.Collections.Generic.Dictionary`2<char,int32>::set_Item(!0,
- !1)
- IL_004c: nop
- IL_004d: br.s IL_0059
- IL_004f: ldloc.1
- IL_0050: ldloc.s c
- IL_0052: ldc.i4.0
- IL_0053: callvirt instance void class [mscorlib]System.Collections.Generic.Dictionary`2<char,int32>::set_Item(!0,
- !1)
- IL_0058: nop
- IL_0059: ldloc.3
- IL_005a: ldc.i4.1
- IL_005b: add
- IL_005c: stloc.3
- IL_005d: ldloc.3
- IL_005e: ldloc.2
- IL_005f: callvirt instance int32 [mscorlib]System.String::get_Length()
- IL_0064: blt.s IL_001b
- IL_0066: ldloc.1
- IL_0067: ldloc.0
- IL_0068: ldftn instance bool TerrasoftTest.Program/'<>c__DisplayClass1_0'::'<GetMostFrequentlyUsedChars>b__0'(valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<char,int32>)
- IL_006e: newobj instance void class [mscorlib]System.Func`2<valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<char,int32>,bool>::.ctor(object,
- native int)
- IL_0073: call class [mscorlib]System.Collections.Generic.IEnumerable`1<!!0> [System.Core]System.Linq.Enumerable::Where<valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<char,int32>>(class [mscorlib]System.Collections.Generic.IEnumerable`1<!!0>,
- class [mscorlib]System.Func`2<!!0,bool>)
- IL_0078: ldsfld class [mscorlib]System.Func`2<valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<char,int32>,int32> TerrasoftTest.Program/'<>c'::'<>9__1_1'
- IL_007d: dup
- IL_007e: brtrue.s IL_0097
- IL_0080: pop
- IL_0081: ldsfld class TerrasoftTest.Program/'<>c' TerrasoftTest.Program/'<>c'::'<>9'
- IL_0086: ldftn instance int32 TerrasoftTest.Program/'<>c'::'<GetMostFrequentlyUsedChars>b__1_1'(valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<char,int32>)
- IL_008c: newobj instance void class [mscorlib]System.Func`2<valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<char,int32>,int32>::.ctor(object,
- native int)
- IL_0091: dup
- IL_0092: stsfld class [mscorlib]System.Func`2<valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<char,int32>,int32> TerrasoftTest.Program/'<>c'::'<>9__1_1'
- IL_0097: call class [System.Core]System.Linq.IOrderedEnumerable`1<!!0> [System.Core]System.Linq.Enumerable::OrderBy<valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<char,int32>,int32>(class [mscorlib]System.Collections.Generic.IEnumerable`1<!!0>,
- class [mscorlib]System.Func`2<!!0,!!1>)
- IL_009c: ldsfld class [mscorlib]System.Func`2<valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<char,int32>,char> TerrasoftTest.Program/'<>c'::'<>9__1_2'
- IL_00a1: dup
- IL_00a2: brtrue.s IL_00bb
- IL_00a4: pop
- IL_00a5: ldsfld class TerrasoftTest.Program/'<>c' TerrasoftTest.Program/'<>c'::'<>9'
- IL_00aa: ldftn instance char TerrasoftTest.Program/'<>c'::'<GetMostFrequentlyUsedChars>b__1_2'(valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<char,int32>)
- IL_00b0: newobj instance void class [mscorlib]System.Func`2<valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<char,int32>,char>::.ctor(object,
- native int)
- IL_00b5: dup
- IL_00b6: stsfld class [mscorlib]System.Func`2<valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<char,int32>,char> TerrasoftTest.Program/'<>c'::'<>9__1_2'
- IL_00bb: call class [mscorlib]System.Collections.Generic.IEnumerable`1<!!1> [System.Core]System.Linq.Enumerable::Select<valuetype [mscorlib]System.Collections.Generic.KeyValuePair`2<char,int32>,char>(class [mscorlib]System.Collections.Generic.IEnumerable`1<!!0>,
- class [mscorlib]System.Func`2<!!0,!!1>)
- IL_00c0: call !!0[] [System.Core]System.Linq.Enumerable::ToArray<char>(class [mscorlib]System.Collections.Generic.IEnumerable`1<!!0>)
- IL_00c5: stloc.s V_8
- IL_00c7: br.s IL_00c9
- IL_00c9: ldloc.s V_8
- IL_00cb: ret
- } // end of method Program::GetMostFrequentlyUsedChars
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement