コード例 #1
0
ファイル: AGeneric.cs プロジェクト: glossycode/SandboxCSharp
        public static void ExecuteWithType()
        {
            string s = AGeneric.ExecuteJsonCallAction <object>(() =>
            {
                return(new string("Hello"));
            }, x => new BaseResponse
            {
                Data             = new { UpdateProducts = true, UpdateCart = true },
                StateInformation = x.ToString()
            });

            Console.WriteLine(s);
        }
コード例 #2
0
ファイル: AGeneric.cs プロジェクト: glossycode/SandboxCSharp
        public static void ExecuteWithNoType()
        {
            string sNoGeneric = AGeneric.ExecuteJsonCallAction(() =>
            {
                return(new string("NoGeneric"));
            }, x => new BaseResponse
            {
                Data             = x,
                StateInformation = "MaisVideInfo"
            });

            Console.WriteLine(sNoGeneric);
        }