Untitled

 avatar
unknown
plain_text
a year ago
307 B
6
Indexable
    public static class ServiceLocator<T> where T : class
    {
        private static T _value;

        public static T Get()
        {
            return _value;
        }

        public static T Set(T value)
        {
            _value = value;
            return _value;
        }
    }
Editor is loading...
Leave a Comment