开发者

System.Debug and System.Threading Reference Error

开发者 https://www.devze.com 2023-01-31 13:11 出处:网络
Error Message \'ThreadState\' is an ambiguous reference between \'System.Threading.ThreadState\' and \'System.Diagnostics.ThreadState\'

Error Message 'ThreadState' is an ambiguous reference between 'System.Threading.ThreadState' and 'System.Diagnostics.ThreadState'

I am trying to debug C# Class .cs and am using Debug.Writeline for code debugging...

But am getting an error above!!

Is there another way to debug C# Code Classes ? I tried Console.Writeline() and Alert.Show and Message.Show and have not found another effective way to debug web application C# classes or 开发者_如何转开发way around the ambiguous reference !!


Use fully qualified names for the offending enum, or don't do a using System.Diagnostics at all (and fully qualify the System.Diagnostics.Debug.WriteLine() calls instead).


You can solve this by doing as follows. Put this using statement near all your other using statements:

using TheThreadState = System.Threading.ThreadState;

Now use TheThreadState on you code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号