int.Format
改为:
string.Format

解决方案 »

  1.   

    还是不行呀改为string.Format后:
    D:\c#\helloworld>csc test.cs /unsafe
    Microsoft (R) Visual C# .NET Compiler version 7.00.9466
    for Microsoft (R) .NET Framework version 1.0.3705
    版权所有 (C) Microsoft Corporation 2001。保留所有权利。test.cs(8,22): error CS1502: 与“string.Format(string,
            object)”最匹配的重载方法具有一些无效参数
    test.cs(8,37): error CS1503: 参数“1” : 无法从“int”转换为“string”改为string.parse(IntValue)后:
    D:\c#\helloworld>csc test.cs /unsafe
    Microsoft (R) Visual C# .NET Compiler version 7.00.9466
    for Microsoft (R) .NET Framework version 1.0.3705
    版权所有 (C) Microsoft Corporation 2001。保留所有权利。test.cs(8,22): error CS0117: “string”并不包含对“parse”的定义
    ???
      

  2.   

    注意大写即可
    String.Format(...)
      

  3.   

    string addr = string.Format( p_elem.ToString() , "X");这样就没问题了
      

  4.   

    改为string addr = string.Format( ((int)p_elem).ToString() , "X");
    才解决问题谢谢各位!!