Hi everyone! I'm relatively new to all of this, but just got super lost trying to do this one thing, so hopefully someone will be able to tell what I'm doing wrong.
Basically for the setup of my project, I have 2 page files in a WPF project. The "main" project has a frame in it that calls the...
Hi,
I've created a simplified code for this post :
public class Program
{
public static int value;
public string printedValue = $"Value is {value}";
public void printValue()
{
value = 3;
Console.WriteLine(printedValue);
}...
Hello!
Please, could somone make me clear how did they get the result 6?
Why right 6?
many thanks!!!
using System;
namespace StaticVarApplication
{
class StaticVar
{
public static int num;
public void count()
{
num++;
}
public int getNum()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.