可能重复:
字符串和字符串有什么区别
我有两种情况,结构和类都可以接受,我想知道最佳实践是什么。
场景一:
public static String foo(){...}//String is a class
public static string foo(){...}//string is a struct
场景二:
public foo(String bar){...}//String is a class
public foo(string bar){...}//string is a struct
每个实施的优点/缺点是什么?