jeudi 16 novembre 2017

C# Create an instance for a class

I am new in C# and I want to create an instance for MyTestClass in runtime. How can I do it ?

public class MyTestClass
{
    public int Value { get; set; }

    public MyTestClass()
    {
        Value = 5;
    }
}





Aucun commentaire:

Enregistrer un commentaire