C# Extension Method: Double - Max

CSharp · Console

/Program.cs

// C# Extension Method
// Doc: https://csharp-extension.com/en/method/1002333/double-max

// @nuget: Z.ExtensionMethods

using System;
					
public class Program
{
	public static void Main()
	{
        Double  xDouble1 = 7.2,   xDouble2 = 57.5;
		
		// C# Extension Method: Double - Max
		Console.WriteLine("The maximum of {0,3} and {1,3} is {2}.", xDouble1, xDouble2, xDouble1.Max(xDouble2));
	}
}
;