用一个cs文件,我用csc编译时可以通过,
但是用vs创建一个工程,把cs文件加进去,编译通过,运行跳出异常
跳出异常的句子是:
Stream stream = GetType().Assembly.GetManifestResourceStream("Level.bin");
异常是:
An unhandled exception of type 'System.NullReferenceException' occurred in WindowsApplication2.exeAdditional information: Object reference not set to an instance of an object.level.bin文件放在工程的目录下了。