Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string foo = null;
- string bar = "woooo";
- string foobar= foo ?? bar ;
- =
- IL_0001: ldnull
- IL_0002: stloc.0
- IL_0003: ldstr "woooo"
- IL_0008: stloc.1
- IL_0009: ldloc.0
- IL_000A: dup
- IL_000B: brtrue.s IL_000F
- IL_000D: pop
- IL_000E: ldloc.1
- IL_000F: stloc.2
- string foo = null;
- string bar = "woooo";
- if(foo==null)
- {
- string foobar = "woooo" ;
- }
- =
- IL_0001: ldnull
- IL_0002: stloc.0
- IL_0003: ldstr "woooo"
- IL_0008: stloc.1
- IL_0009: ldloc.0
- IL_000A: ldnull
- IL_000B: ceq
- IL_000D: ldc.i4.0
- IL_000E: ceq
- IL_0010: stloc.3
- IL_0011: ldloc.3
- IL_0012: brtrue.s IL_001C
- IL_0014: nop
- IL_0015: ldstr "woooo"
- IL_001A: stloc.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement