예제 #1
0
        public static void Main(String[] args)
        {
            System.Diagnostics.Debug.WriteLine("hello world.");
            t1 t1 = new t1();
            t2 t2 = new t2();
            t2 t3 = new t2();

            System.Diagnostics.Debug.WriteLine(t1.Test());
            System.Diagnostics.Debug.WriteLine(t2.Test());
            System.Diagnostics.Debug.WriteLine(t2.Test(5));
            System.Diagnostics.Debug.WriteLine(t3.Test(5));
            System.Diagnostics.Debug.WriteLine("good bye world.");
        }
예제 #2
0
            public static t2 BiserJsonDecode(string enc = null, Biser.JsonDecoder extDecoder = null, Biser.JsonSettings settings = null) //!!!!!!!!!!!!!! change return type
            {
                Biser.JsonDecoder decoder = null;

                if (extDecoder == null)
                {
                    if (enc == null || String.IsNullOrEmpty(enc))
                    {
                        return(null);
                    }
                    decoder = new Biser.JsonDecoder(enc, settings);
                    if (decoder.CheckNull())
                    {
                        return(null);
                    }
                }
                else
                {
                    //JSONSettings of the existing decoder will be used
                    decoder = extDecoder;
                }

                t2 m = new t2();  //!!!!!!!!!!!!!! change return type

                foreach (var props in decoder.GetDictionary <string>())
                {
                    switch (props)
                    {
                    case "p1":
                        m.p1 = decoder.GetDateTime();
                        break;

                    case "p2":
                        m.p2 = decoder.GetString();
                        break;

                    default:
                        decoder.SkipValue();    //MUST BE HERE
                        break;
                    }
                }
                return(m);
            }
예제 #3
0
파일: e_t1Struct.cs 프로젝트: zjmit/go2cs
 public T1(t1 t1 = default, t2 t2 = default)
 {
     this.m_t1Ref = new ptr <t1>(t1);
     this.m_t2Ref = new ptr <t2>(t2);
 }
예제 #4
0
파일: e.cs 프로젝트: zjmit/go2cs
 // t2.M should not appear as method in a Tx type.
 private static void M(this t2 _p0)
 {
 }
예제 #5
0
 var(t0, t1, t2, t3, t4, t5, t6, t7) = key;
예제 #6
0
 public T4(t2 t2 = default, T2 T2 = default)
 {
     this.m_t2Ref = new ptr <t2>(t2);
     this.m_T2Ref = new ptr <T2>(T2);
 }
this.<.ctor > g__AddMethodForType | 6_0 (t2, methodInfo);
 public static int MultiSignatureHierarchyStatic(testClass a, t2 c)
 {
     return(c.i2);
 }
 public int MultiSignatureHierarchy(t2 c)
 {
     return(c.i2);
 }
예제 #10
0
파일: e_t2eStruct.cs 프로젝트: zjmit/go2cs
 public t2e(t2 t2 = default)
 {
     this.m_t2Ref = new ptr <t2>(t2);
 }
예제 #11
0
 var(t2, f2) = await @this.Item2;
예제 #12
0
 TranBind(t2, t2IsJoin, t1);