版权声明:本博客一本正经胡说八道,文章内容不能作参考。本文为博主原创文章,未经博主允许不得转载。该博客所用图片资源均作学习分享用途,仅供参考,请勿用于商业行为。传播者自负。 如果本博客所写文章侵犯到您的权益,请主动联系留言,我们将及时删除相关内容。 https://blog.csdn.net/BuladeMian/article/details/90752951
什么情况下需要
using System.Collections.Generic;
在项目里面有个Test.cs文件
public class Test
{
public int Num;
//带参数的构造函数
public InventoryItemArray(int _Num)
{
this.Num = _Num;
}
}
在其他的.cs文件中需要使用Test
using System.Collections.Generic;//缺少这行代码,导致的错误。
...
private Test[] test_array;
...