Trying a partial class example from https://www.dotnetperls.com/partial
Getting error "The name 'A' does not exist in the current context."
Please help me get it to work.
This is in b.cs
This is in A1.cs
This is in A2.cs
This is in csc.bat
c:\windows\microsoft.net\framework64\v3.5\csc b.cs
Getting error "The name 'A' does not exist in the current context."
Please help me get it to work.
This is in b.cs
C#:
class Program
{
static void Main()
{
A.A1();
A.A2();
}
}
This is in A1.cs
C#:
using System;
partial class A
{
public static void A1()
{
Console.WriteLine("A1");
}
}
This is in A2.cs
C#:
using System;
partial class A
{
public static void A2()
{
Console.WriteLine("A2");
}
}
This is in csc.bat
c:\windows\microsoft.net\framework64\v3.5\csc b.cs