how to import a function from a class in c# code example
Example: how to import a function from a class in c#
namespace Phrases
{
public class Greetings
{
public static void SayHello()
{
Console.WriteLine("Hello");
}
}
}
using static Phrases.Greetings;
namespace NamespaceName
{
public class ClassName
{
void FuntionName()
{
SayHello();
}
}
}