// C# Extension Method
// Doc: https://csharp-extension.com/en/method/1002302/decimal-max
// @nuget: Z.ExtensionMethods
using System;
public class Program
{
public static void Main()
Decimal xDecimal1 = 7m, xDecimal2 = 57m;
// C# Extension Method: Decimal - Max
Console.WriteLine("The greater of {0,3} and {1,3} is {2}.", xDecimal1, xDecimal2, xDecimal1.Max(xDecimal2));
}