C# 方法返回类是什么意思?比如public static class(类) method(方法)这种用法的好处是什么呢?

C# 方法返回类是什么意思?比如public static class(类) method(方法),最后return class,这种用法的好处是什么呢?

返回一个有数据的类型给你用啊。
比如 public DataTable GG(),返回一个DataTable。
比如public string GG(),返回一个字符串。
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答