Cs0108 c# hides inherited member. use the new keyword if hiding was intended.

Cs0108 c# hides inherited member. use the new keyword if hiding was intended.

Cs0108 c# hides inherited member. use the new keyword if hiding was intended.

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

  • Digital Design and Embedded Programming
  • PC Programming and Interfacing

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

C# error CS0108, how to solve it

  • Thread starter dann11
  • Start date Sep 16, 2016

Status Not open for further replies.

  • #1

Cs0108 c# hides inherited member. use the new keyword if hiding was intended.

JoinedOct 22, 2015Messages166 Helped0Reputation 0Reaction score0Trophy points16Activity points 1,441

Hi! I have encountered an error at my c# project, I am using sharpdevelop as my software. I have been building my design but just recent, I have encounter an error which is CS0108. Can you guys please help me to solve the error. Thanks.

  • #2

Cs0108 c# hides inherited member. use the new keyword if hiding was intended.

JoinedNov 18, 2008Messages2,118 Helped596Reputation 1,188Reaction score571Trophy points1,393Location Norwich, UKActivity points 13,063

  • #3

Cs0108 c# hides inherited member. use the new keyword if hiding was intended.

JoinedOct 22, 2015Messages166 Helped0Reputation 0Reaction score0Trophy points16Activity points 1,441

Status Not open for further replies.

Similar threads

  • Digital Design and Embedded Programming
  • PC Programming and Interfacing

  • This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.

Ask general questions here.

dosPosts: 7Joined: Wed Jul 15, 2020 10:17 am

Compile issue: CS0108 - hides inherited member - Use the new keyword if hiding was intended

Hello
I am writing on behalf of one of my colleagues who are getting the following issue when compiling Ranorex solution through Ranorex.

Severity Code Description Project File Line Suppression State
Error CS0266 Cannot implicitly convert type 'Ranorex.Core.Repository.RepoItemInfo' to 'ReactCompo-nentTest.ReactComponentTestRepositoryFolders.DetailsListFolder.SelfInfoClass'. An explicit conversion exists (are you missing a cast?) ReactCompo-nentTest C:\udv\tool-react-ranorex-test\src\RanorexStudio Pro-jects\StoryBookTest\ReactComponentTest\ReactComponentTest\ReactComponentTestRepository.cs 3570 Active

He attempted to change things in the code in order to fix this issue, however it seems that the code get re-generated to its original state and all changes gets removed.

We found someone else with the same issue. But they were informed by Ranorex staff that they could not change the code on their end as it would break other stuff. Sadly, the solution on their end was not written on the thread.

So, is there a possible quick fix on our end to continue with our work?

Attachments ReactComponentTestRepository.cs(240.83 KiB) Downloaded 98 times




Cs0108 c# hides inherited member. use the new keyword if hiding was intended.

VegaCertified Professional
Cs0108 c# hides inherited member. use the new keyword if hiding was intended.
Posts: 222Joined: Mon Jul 11, 2016 2:15 pm

Re: Compile issue: CS0108 - hides inherited member - Use the new keyword if hiding was intended

Post by Vega » Thu Jul 16, 2020 1:11 pm

Thank you for the rxrep. I was not able to reproduce with just the repository; I imported it to a new 9.3 solution and the build was successful. Would it be possible to share your solution? Keep in mind this is a public form so if there is any sensitive data, I would recommend just opening a support ticket instead [https://www.ranorex.com/support-query/].

However if you don't mind sharing your solution, I would be happy to take a look. The easiest way to share your solution is to open it in Ranorex studio and then go to Tools -> Compress solution and open folder.

Hope this helps



Cs0108 c# hides inherited member. use the new keyword if hiding was intended.

VegaCertified Professional
Posts: 222Joined: Mon Jul 11, 2016 2:15 pm

Re: Compile issue: CS0108 - hides inherited member - Use the new keyword if hiding was intended

Post by Vega » Tue Jul 21, 2020 2:14 pm

Thank you for sharing; I was able to build the solution without errors, but I did receive the warning you have. From your original post you mentioned you are getting an error, but does your build complete?

I have seen this warning once before and it was caused by having a validation screenshot as a direct child of an app folder in the repository. Looking through the XML for your repository, there was a direct child validation image for the detailslist app folder which I removed (delete image tag) however this did not resolve the warning so there may be another spot within your repository where a validation image is a direct child of an app folder.

Overall this warning should not impact your test at all, and can easily be suppressed in Project -> Project Options -> Compiling tab -> Suppress warnings (just type CS0108)

hope this helps