Hi,
I've created a simplified code for this post :
I would like my metod "printValue" returns "Value is 3" but it returns "Value is 0". So how can i change this ?
Thank you for your help.
I've created a simplified code for this post :
C#:
public class Program
{
public static int value;
public string printedValue = $"Value is {value}";
public void printValue()
{
value = 3;
Console.WriteLine(printedValue);
}
}
I would like my metod "printValue" returns "Value is 3" but it returns "Value is 0". So how can i change this ?
Thank you for your help.