Yes, I’m new to C#, but I’m a decent Java developer. OK, I’ve got a project in Visual Studio with a program.cs file and a Class.cs file. All I’m trying to do is make a call to the method in Class.cs in Program.cs. I have one frustrating error. The name ‘mymethod’ does not exist in the current context. All the other code builds fine if I comment out the method call mymethod(parameter); but I can’t get rid of that bug. I would greatly appreciate any help.
public class Class
{
public void myMethod()
{
class Program
{
static void Main(string[] args)
{
This doesn’t work?