// Compile with "mono-csc test_max.cs", run with "mono test_max.exe"

using System;

public class TestMax
{
	public static void Main(string [] args)
	{
		var size = new Size (Math.Max (0, -1.0));
		
		Console.WriteLine ("Size is " + size.Width);
	}
	
	public struct Size
    {
		private double width;
		
		public Size (double width) : this ()
		{
			Width = width;
		}
		
		public double Width {
			get { return width; }
			set {
				if (value < 0) {
					throw new ArgumentException ();
				}
				
				width = value;
			}
		}
	}
}

