[Solved] How to make global variables? [closed]


Create singleton class so that instace can be created once and used across application

public class Global 
{
    private static readonly Global instance = new Global();
    public static Global Instance
    {
        get
        {
            return instance;
        }
    }

    Global()
    {
    }
    public string myproperty
    {
        get;set;
    }
    }

Usage:
Global.Instance.myproperty

solved How to make global variables? [closed]