Int32 - BigMul

Produces the full product of two 32-bit numbers.

Try it

public static void Main()
{
    int int1 = Int32.MaxValue;
    int int2 = Int32.MaxValue;
    long longResult;

	// C# Extension Method: Int32 - BigMul
    longResult = int1.BigMul(int2);
    Console.WriteLine("Calculate the product of two Int32 values:");
    Console.WriteLine("{0} * {1} = {2}", int1, int2, longResult);
}

View Source
using System;

public static partial class Extensions
{
    /// <summary>
    ///     Produces the full product of two 32-bit numbers.
    /// </summary>
    /// <param name="a">The first number to multiply.</param>
    /// <param name="b">The second number to multiply.</param>
    /// <returns>The number containing the product of the specified numbers.</returns>
    public static Int64 BigMul(this Int32 a, Int32 b)
    {
        return Math.BigMul(a, b);
    }
}