C#常用方法

常用语法:

1、显示数组内容

现在有个字符串型的数组 args,想要在log中输出结果,那么做法是用string.join()

string[] args;

string.Join(",", args);

 2、Razor页面输入框增加HTML属性

//输入框增加样式
@Html.TextBoxFor(model => model.contractCost, new { @class = "input-width-150" })
//输入框增加只读属性
@Html.TextBoxFor(model => model.contractCost, new { @readonly = "readonly", @class = "input-border-none input-width-150" })

 

posted @ 2017-12-18 15:24  Rexcnblog  阅读(406)  评论(0编辑  收藏  举报