An explicit conversion exists (are you missing a cast?)

后端 未结 6 669
礼貌的吻别
礼貌的吻别 2020-12-10 13:06

I have a method that gives me the groupID of users and then I want to get the news based on the user\'s GroupID.

public IEnumerable Getnews(int G         


        
6条回答
  •  不知归路
    2020-12-10 13:51

    An explicit conversion exists (are you missing a cast?) I was facing same problem in my C# code. I was writing code in VS. I checked full code, and I get reason behind this error. I missed 'I' in my explicit Interface name.

    Picture with Error

    Error Solution

提交回复
热议问题