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++ - protocol buffers - generate NON-inline accessors -

c# - issue attaching/adding an entity object which is detached from the DB Context? -