Testing syntax highlighter


using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace Harry
{
public class Matrix
{
private int row;
		public int Row
		{
			get { return row; }
			set { row = value; }
		}

		private int column;
		public int Column
		{
			get { return column; }
			set { column = value; }
		}

		public Matrix()
		{
			this.row = 0;
			this.column = 0;
		}

		public Matrix(int row, int column)
		{
			this.row = row;
			this.column = column;
		}

		public static explicit operator Matrix(Point point)
		{
			return new Matrix(point.Y, point.X);
		}

		public static explicit operator Point(Matrix matrix)
		{
			return new Point(matrix.column, matrix.row);
		}
	}
}

Leave a Comment

You must be logged in to post a comment.