In C# I have two class with one static function. First class is defined as static and another is not.
public static class TestClass1
{
public static string TestFunc()
{
....
}
}
public class TestClass2
{
public static string TestFunc()
{
....
}
}
I can call these functions as
TestClass1.TestFunc();
TestClass2.TestFunc();
What is the difference between these two type of usage, or is there any? (This function is called more than million times in a day. My first concern is about memory and performance)