Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

when i pass a "Type", Console.write() prints System.Runtime?

$
0
0

hi friends,

I have opened form counting method

int CountOpenedForms(Type f)

{

      Console.Write(f.getType().ToString());

}

when I pass a Form type, assume my project has a form type called frmProducts, the write() printsSystem.Runtime. But it should print  <project_name>.frmProducts

why this happens, how do I fix it?


I use Visual studio 2010 professional and SQL server 2008 developer edition!


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>