I have a partial class defined in two different .cs
(Part1.cs
, Part2.cs
) and I'm not able to call a function in part1.cs
from part2.cs
. Is it possible to do it ?
Both .cs
are in the same folder and can use other class in the folder (class1.cs
,class2.cs
,...)
This is what I'm trying to do:
Part1.cs
namespace MyNamespace
{
public partial class MainWindow : Window
{
public void Two()
{ }
public void Three()
{ }
}
}
Part2
namespace MyNamespace
{
public partial class MainWindow : Window
{
public void One()
{
Two();
}
}
}