我是否需要使我的类变为静态才能使用静态方法?

问题描述

| 我有以下内容:
public class Sort
{

    public static void ShuffleGenericList<T>(IList<T> list)
    {
        //generate a Random instance
        Random rnd = new Random();
        //get the count of items in the list
        int i = list.Count();

        ...
        ...
    }
}
我的类也应该是静态的,还是只将方法静态化就可以吗?     

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)