/// <summary>
    ///   <para>Specifies law branch.</para>
    /// </summary>
    /// <param name="call">API call instance to use.</param>
    /// <param name="branch">Instance of law branch.</param>
    /// <returns>Back reference to the provided <paramref name="call"/> instance.</returns>
    /// <exception cref="ArgumentNullException">If either <paramref name="call"/> or <paramref name="branch"/> is a <c>null</c> reference.</exception>
    public static ILawsLawApiCall Branch(this ILawsLawApiCall call, ILawBranch branch)
    {
      Assertion.NotNull(call);
      Assertion.NotNull(branch);

      return call.Branch(branch.Id);
    }
Ejemplo n.º 2
0
 public static IDisposable BranchIfTrue(this ILProcessor il)
 {
     return il.Branch(OpCodes.Brtrue);
 }
Ejemplo n.º 3
0
 public static IDisposable BranchIfFalse(this ILProcessor il)
 {
     return il.Branch(OpCodes.Brfalse);
 }