コード例 #1
0
ファイル: Program.cs プロジェクト: cra0zy/JSIL.Hacks
 private static void Print(TestLong p)
 {
     if (Jsil)
         Element.GetById("target").InnerHtml += p.ToString() + "<br/>";
     else
         Console.WriteLine(p.ToString());
 }
コード例 #2
0
 private static void Print(TestLong p)
 {
     if (Jsil)
     {
         Element.GetById("target").InnerHtml += p.ToString() + "<br/>";
     }
     else
     {
         Console.WriteLine(p.ToString());
     }
 }
コード例 #3
0
        public static void Main(string[] args)
        {
            TestLong x = 1000000000;
            TestLong y = 110;
            TestLong z = x / y;

            Print(z);

            if (!Jsil)
            {
                Console.ReadLine();
            }
        }
コード例 #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = TestBoolean.GetHashCode();
         hashCode = (hashCode * 397) ^ TestDouble.GetHashCode();
         hashCode = (hashCode * 397) ^ TestInt;
         hashCode = (hashCode * 397) ^ (TestIntVector != null ? TestIntVector.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ TestLong.GetHashCode();
         hashCode = (hashCode * 397) ^ (TestString != null ? TestString.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ TestInt128.GetHashCode();
         hashCode = (hashCode * 397) ^ TestInt256.GetHashCode();
         return(hashCode);
     }
 }