All pastes #252283 Raw Edit

Kiryn

public text v1 · immutable
#252283 ·published 2006-11-19 08:56 UTC
rendered paste body
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for Class1
/// </summary>
/// <example>
/// <code>
/// public Test<int> t = new Test<int>();
/// t.X = 10;
/// t.Y = 20;
/// t.Add( X, y );
/// /*********************
/// X = 10;
/// Y = 10;
/// **********************/
/// </code>
/// </example>
public class Test<T>
{
	private T _x;
	private T _y;

	public T Add(T x, T y)
	{
		return x + y;
	}

	public T X
	{
		get { return _x; }
		set { _x = value; }
	}
	public T Y
	{
		get { return _y; }
		set { _y = value; }
	}
}