/// <summary> Branches to the specified label if a string on the evaluation stacks equals the given literal value.</summary> public static ILSugar GotoIfStringEquals(this ILSugar il, string literal, Label @goto) { var ifStringEquals = il.Ldstr(literal).Call(KnownMethods.StringEquals); ifStringEquals .Brtrue(@goto); // TODO calculate offsets dynamically to call Brtrue_S vs. Brtrue, not worth it right now. return(il); }