无效的令牌'=','{',';'在类,结构,接口中 [英] Invalid token '=', '{', ';' in class,struct,interface

查看:109
本文介绍了无效的令牌'=','{',';'在类,结构,接口中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

      public static List<CS_ReturnOfGoodsSold_DTO> GetCostedUncostedReturns(CS_ReturnOfGoodsSold_DTO objReturnOfGoodsSoldDTO)
        {
            List<CS_ReturnOfGoodsSold_DTO>lstReturnOfGoodsSold_DTO = new List<CS_ReturnOfGoodsSold_DTO>();
lstReturnOfGoodsSold_DTO = CS_ReturnOfGoodsSold_DAL.GetCostedUncostedReturns(objReturnOfGoodsSoldDTO);
           return lstReturnOfGoodsSold_DTO;
        }

推荐答案

查看代码上方:您添加或忘记}的可能性和编译器混淆关于该代码应该在哪里。



尝试评论该方法并格式化文档(CTRL + K,CTRL + D)并查看缩进是否更改 - 这可能有助于指出它在哪里。
Look above the code: the chances are you added or forgot a "}" and the compiler is confused as to where that code is supposed to be.

Try commenting that method out and formatting the document (CTRL+K, CTRL+D) and see if the indentation changes - that may help indicate where it is.


以下代码显示了你的'人性化'版本

The following code shows a 'humanized' version of yours
public static List<R> Get(R oR)
{
  List<R> lst = new List<R>();
  lst = MyClass.Get(oR);
  return lst;
}



我在这里找不到任何语法问题。但是它看起来堆栈溢出的可能性很大。


I cannot spot any syntactical problem here. However it looks there is a good chance of stack overflow.


这篇关于无效的令牌'=','{',';'在类,结构,接口中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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