예제 #1
0
        public static sr <T> Get(T data)
        {
            var s = new sr <T>();

            s.Data = data;
            return(s);
        }
예제 #2
0
        public static sr <T> Get(string message)
        {
            var s = new sr <T>();

            s.Message = message;
            return(s);
        }
예제 #3
0
        public static sr <T> Get(Exception exception)
        {
            var s = new sr <T>();

            s.Exception = exception;
            return(s);
        }
예제 #4
0
        public static sr <T> GetSuccess(T data)
        {
            var s = new sr <T>();

            s.Data    = data;
            s.Success = true;
            return(s);
        }
예제 #5
0
        public static sr <T> Get()
        {
            var s = new sr <T>();

            return(s);
        }