c# - Method must have a return type on an InitializeComponent() method -


i have partial public class

namespace bugnetwpf {     public partial class reportscreen_idrangereport : page     {         public generatereport(mainwindow mainwindow)         {              initializecomponent();          }     } } 

the error saying method must have return type, ideas how fix this?

what else saying return type true, i'm guessing want:

namespace bugnetwpf {     public partial class reportscreen_idrangereport : page     {         public reportscreen_idrangereport(mainwindow mainwindow)         {             initializecomponent();         }     } } 

the constructor needs have same name class.


Comments

Popular posts from this blog

c - sscanf() double showing zeros -

pentaho - Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run -