This is my project. I want to call delete_created_page file code in program.cs file, But I have some errors.
Attached image my progect. https://plus.google.com/u/0/photos/photo/103928744837695537992/6652781093994177394
'DeleteCreatedPage.MainDeletePage()' is inaccessible due to its protection level
Help me please. I am beginner in C#, I am using monodevelop and usng Ubuntu 18.04 OS
This is the Delete_created_page.cs file
namespace DeletePage
{
public class DeleteCreatedPage
{
static void MainDeletePage()
{
//Initialize TestName and ToolName.
string testName = "delete_page";
string toolName = "editor";
// Calling necessary classes
}
}
}
And this is the Program.cs file
namespace ProgramList
{
public class MainClass
{
static void Main(string[] args)
{
DeletePage.DeleteCreatedPage del = new DeletePage.DeleteCreatedPage();
del.MainDeletePage();
}
}
}