public
Created

IL from two different GetFirstDirectoryFrom methods

  • Download Gist
GetFirstDirectoryFrom2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
GetFirstDirectoryFrom2:
IL_0000: ldarg.1
IL_0001: ldsfld UserQuery.CS$<>9__CachedAnonymousMethodDelegate2
IL_0006: brtrue.s IL_0019
IL_0008: ldnull
IL_0009: ldftn UserQuery.<GetFirstDirectoryFrom2>b__0
IL_000F: newobj System.Func<System.String,System.IO.DirectoryInfo>..ctor
IL_0014: stsfld UserQuery.CS$<>9__CachedAnonymousMethodDelegate2
IL_0019: ldsfld UserQuery.CS$<>9__CachedAnonymousMethodDelegate2
IL_001E: call System.Linq.Enumerable.Select
IL_0023: ldsfld UserQuery.CS$<>9__CachedAnonymousMethodDelegate3
IL_0028: brtrue.s IL_003B
IL_002A: ldnull
IL_002B: ldftn UserQuery.<GetFirstDirectoryFrom2>b__1
IL_0031: newobj System.Func<System.IO.DirectoryInfo,System.Boolean>..ctor
IL_0036: stsfld UserQuery.CS$<>9__CachedAnonymousMethodDelegate3
IL_003B: ldsfld UserQuery.CS$<>9__CachedAnonymousMethodDelegate3
IL_0040: call System.Linq.Enumerable.Where
IL_0045: call System.Linq.Enumerable.FirstOrDefault
IL_004A: ret
GetFirstDirectoryFrom3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
GetFirstDirectoryFrom3:
IL_0000: ldarg.1
IL_0001: ldsfld UserQuery.CS$<>9__CachedAnonymousMethodDelegate6
IL_0006: brtrue.s IL_0019
IL_0008: ldnull
IL_0009: ldftn UserQuery.<GetFirstDirectoryFrom3>b__4
IL_000F: newobj System.Func<System.String,System.IO.DirectoryInfo>..ctor
IL_0014: stsfld UserQuery.CS$<>9__CachedAnonymousMethodDelegate6
IL_0019: ldsfld UserQuery.CS$<>9__CachedAnonymousMethodDelegate6
IL_001E: call System.Linq.Enumerable.Select
IL_0023: ldsfld UserQuery.CS$<>9__CachedAnonymousMethodDelegate7
IL_0028: brtrue.s IL_003B
IL_002A: ldnull
IL_002B: ldftn UserQuery.<GetFirstDirectoryFrom3>b__5
IL_0031: newobj System.Func<System.IO.DirectoryInfo,System.Boolean>..ctor
IL_0036: stsfld UserQuery.CS$<>9__CachedAnonymousMethodDelegate7
IL_003B: ldsfld UserQuery.CS$<>9__CachedAnonymousMethodDelegate7
IL_0040: call System.Linq.Enumerable.SkipWhile
IL_0045: call System.Linq.Enumerable.FirstOrDefault
IL_004A: ret

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.