Click here to Skip to main content
15,910,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
      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;
        }
Posted
Updated 6-Oct-15 22:01pm
v2

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.
 
Share this answer
 
Comments
Member 11527624 7-Oct-15 6:02am    
Thank you very much....Solved :)
OriginalGriff 7-Oct-15 6:19am    
You're welcome!
The following code shows a 'humanized' version of yours
C#
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.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900