本文介绍了结构声明类的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的代码是:
my code is :
[CompilerGenerated]
internal class PrivateImplementationDetails
{
internal static __StaticArrayInitTypeSize=260 0; //<<----- error here
//Error 1255 Invalid token '=' in class, struct, or interface member declaration
[StructLayout(LayoutKind.Explicit, Size=260, Pack=1)]
private struct __StaticArrayInitTypeSize=260
{
}
}
请帮助
谢谢advance
please help
thanks advance
推荐答案
internal static int __StaticArrayInitTypeSize=260;
2)这不是您唯一的问题,但我会让您自己解决这个问题.
2) That''s not your only problem, but I''ll leave you to find that out on your own.
这篇关于结构声明类的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!