结构声明类的问题 [英] problem with struct declaretion class

查看:91
本文介绍了结构声明类的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的代码是:

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

推荐答案

0)行尾多余的"0"是什么?
1)您尚未指定变量的类型.应该是这样的:

0) What''s that extra "0" at the end of the line?
1) You haven''t specified a type for the variable. It should be something like this:

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.


这篇关于结构声明类的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆