日期:2014-05-17 浏览次数:20885 次
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
TwoTuple<Boolean, Double> two = new TwoTuple<Boolean, Double>(true, 56.00);
Boolean bo = two.first;
Double st = two.second;
Console.WriteLine(bo+st);
Console.Read();
}
}
public class TwoTuple<A,B> {
public const A first=null;
public const B second=null;
public TwoTuple(A a,B b){
first=a;
second=b;
}
public String toString(){
return ")"+first+", " +second+")";
}
}
}
public A first = default(A);