C#中m个bool值,n个bool值为真,则为真
一、上代码:
class Program
{
static void Main(string[] args)
{
A a = new A(4);
bool c = a + true + false + true + false + true + false + true;
Console.WriteLine(c);
}
}
class A
{
private int Count { get; set; }
private int index;
public A(int n)
{
Count = n;
}
public static
共有 0 条评论