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.
精彩评论