whats the correct way to use public functions/variables? I mean should i create a new class filled with everything that is public? like a PublicFunctionsAndVariables
class?
namespace TestProgram
{
class PublicMethodsAndVariables
{
public int SomeVar;
public float TimesPI(float number){
float result;
result = number*3.14159265359;
return result;
}
}
}
I have already made a class, but don't know if that is the convention in c#. The above is just a quick example i made.
I have a win form application where in different forms i need to use some of the same code, like a function that filter search results etc.
Thanks in advance.