I’ve created a program with some very big .cs files. So i tried to split one of them up by using partial classes. So i created a second file with same class name inside and same namespace.
I cut some functions from one file and pasted it in the second one. But when i want to run the program it says that the class already exists. But its a partial class it has to have the same name :S
At the first file (ChartWidget.cs) it starts with:
namespace UGS.Sidebar.ChartWidget
{
public partial class ChartWidget : UserControl
{
#region declarations
private int id = -1;
…..
At the second file (Debugging.cs) it starts with:
namespace UGS.Sidebar.ChartWidget
{
public partial class ChartWidget : UserControl
{
#region debugvars
Random _r = new Random();
#endregion
.....
those files are from an Usercontrol (as you can see) but i dont think that this is the problem?
Hope you guys can tell me why it doesnt work 🙁
And sorry for my bad english i really suck … 🙂
No need to inherit from UserControl in second class