I have written a very simple code in console application. I have created a static class i.e.
public static class A
{
public static void GetData(Int16 Id)
{
//method code
}
}
and I'm trying to call this method in main method i.e.
class Program
{
static void Main(string[] args)
{
A.GetData(21);
}
}
but I'm getting this error: "Object reference not set to an instance of an object."
Note: class "A" is in another project (within same solution) and I have added the reference of this project in startup (main) project.
any solution please?