Answers for "how to do you call a class c#"

C#
1

c# how to call methods from another class

public class AllMethods
{
    public static void Method2()
    {
        // code here
    }
}

class Caller
{
    public static void Main(string[] args)
    {
        AllMethods.Method2();
    }
}
Posted by: Guest on September-30-2020
0

call class c#

public class MyClass {

    private List<string> myList = new List<string>();

    public List<string> GetList()
    {
        return myList;
    }
}
Posted by: Guest on October-27-2021

Code answers related to "how to do you call a class c#"

C# Answers by Framework

Browse Popular Code Answers by Language