日期:2014-05-17 浏览次数:20925 次
IL_0018: call string [mscorlib]System.String::Concat(object,
object)
public static String Concat(params Object[] args) {
if (args==null) {
throw new ArgumentNullException("args");
}
Contract.Ensures(Contract.Result<String>() != null);
Contract.EndContractBlock();
String[] sArgs = new String[args.Length];
int totalLength=0;
for (int i=0; i<args.Length; i++) {
object value = args[i];
sArgs[i] = ((value==null)?(String.Empty):(value.ToString()));
if (sArgs[i] == null) sArgs[i] = String.Empty; // value.ToString() above could have returned null
totalLength += sArgs[i].Length;
// check for overflow
if (totalLength < 0) {
&nb