在C#中,&<逻辑运算符意味着

时间:2016-03-23 03:37:51

标签: c# operators

当我偶然发现"&<"时,请阅读Quick C#中对C#的简要概述。逻辑运算符。特定的代码片段如下:

object[] objects = new object[2];
objects[0] = "Aisha";
object[1] = new Shape();

string str;
for(int i=0; i&< objects.Length; i++)
{
    str = objects[i] as string;
    if(str == null)
        Console.WriteLine("can not be converted");
    else
        Console.WriteLine("{0}",str);
}

我不确定操作符的含义。

0 个答案:

没有答案