C# String == Equals
2016-05-31 18:39
260 查看
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace tmpTest
{
class Program
{
static void Main(string[] args)
{
String str = "hello";
if (str==args[0])
{
Console.WriteLine(str);
}
else
{
Console.WriteLine("not equal:"+str);
}
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace tmpTest
{
class Program
{
static void Main(string[] args)
{
String str = "hello";
if (str==args[0])
{
Console.WriteLine(str);
}
else
{
Console.WriteLine("not equal:"+str);
}
}
}
}
相关文章推荐
- 在C#代码中应用Log4Net(四)在Winform和Web中捕获全局异常
- C#繁体转简体批量工具(完整代码)
- 在C#代码中应用Log4Net(三)Log4Net中配置文件的解释
- C# SendMessage用法
- C#一般处理程序 ashx.cs使用Session报错的处理
- 在C#代码中应用Log4Net(二)典型的使用方式
- 在C#代码中应用Log4Net(一)简单使用Log4Net
- C#在线预览文档(word,excel,pdf,txt,png)
- C#改变LINQ的引用地址
- C#开发体感游戏 Kinect应用知识
- c#调用带out类型参数的存储过程拿不到返回值的解决办法
- C#模拟POST提交表单
- 一个C#操作Excel类,功能比较全
- C# 谈谈代码重构
- C# 常用分页
- c#-轮询算法
- C#学习笔记
- c#tabcontrol控件选项卡竖直显示,上面的文字水平显示
- C#的类型转换(2)之装箱拆箱和Nullable
- C# 进程间通信之二传递复杂数据类型(转)