public class Test2
{
public Test2() { }
public static Boolean operator ==(Test2 t1, Test2 t2)
{
//do someting
return true;
}
public static Boolean operator !=(Test2 t1, Test2 t2)
{
//do someting
return false;
}
C# 自定义 + - 运算符
最新推荐文章于 2024-06-04 19:38:21 发布