コード例 #1
0
    public static IncludeOuterIntergerStructSequential NewIncludeOuterIntergerStructSequential(int i321, int i322)
    {
        IncludeOuterIntergerStructSequential s10 = new IncludeOuterIntergerStructSequential();

        s10.s.s_int.i = i321;
        s10.s.i       = i322;
        return(s10);
    }
コード例 #2
0
 public static bool ValidateIncludeOuterIntergerStructSequential(IncludeOuterIntergerStructSequential str1, IncludeOuterIntergerStructSequential str2, string methodName)
 {
     if (str1.s.s_int.i != str2.s.s_int.i || str1.s.i != str2.s.i)
     {
         Console.WriteLine("\tFAILED! " + methodName + "did not receive result as expected.");
         Console.WriteLine("\tThe Actual is...");
         PrintIncludeOuterIntergerStructSequential(str1, str1.ToString());
         Console.WriteLine("\tThe Expected is...");
         PrintIncludeOuterIntergerStructSequential(str2, str2.ToString());
         return(false);
     }
     else
     {
         Console.WriteLine("\tPASSED!");
         return(true);
     }
 }
コード例 #3
0
ファイル: Helper.cs プロジェクト: CheneyWu/coreclr
 public static bool ValidateIncludeOuterIntergerStructSequential(IncludeOuterIntergerStructSequential str1, IncludeOuterIntergerStructSequential str2, string methodName)
 {
     if (str1.s.s_int.i != str2.s.s_int.i || str1.s.i != str2.s.i)
     {
         Console.WriteLine("\tFAILED! " + methodName + "did not recieve result as expected.");
         Console.WriteLine("\tThe Actual is...");
         PrintIncludeOuterIntergerStructSequential(str1, str1.ToString());
         Console.WriteLine("\tThe Expected is...");
         PrintIncludeOuterIntergerStructSequential(str2, str2.ToString());
         return false;
     }
     else
     {
         Console.WriteLine("\tPASSED!");
         return true;
     }
 }
コード例 #4
0
ファイル: Helper.cs プロジェクト: CheneyWu/coreclr
 public static void PrintIncludeOuterIntergerStructSequential(IncludeOuterIntergerStructSequential str1, string name)
 {
     Console.WriteLine("\t{0}.s.s_int.i = {1}", name, str1.s.s_int.i);
     Console.WriteLine("\t{0}.s.i = {1}", name, str1.s.i);
 }
コード例 #5
0
ファイル: Helper.cs プロジェクト: CheneyWu/coreclr
 public static IncludeOuterIntergerStructSequential NewIncludeOuterIntergerStructSequential(int i321, int i322)
 {
     IncludeOuterIntergerStructSequential s10 = new IncludeOuterIntergerStructSequential();
     s10.s.s_int.i = i321;
     s10.s.i = i322;
     return s10;
 }
コード例 #6
0
 public static void PrintIncludeOuterIntergerStructSequential(IncludeOuterIntergerStructSequential str1, string name)
 {
     Console.WriteLine("\t{0}.s.s_int.i = {1}", name, str1.s.s_int.i);
     Console.WriteLine("\t{0}.s.i = {1}", name, str1.s.i);
 }
コード例 #7
0
 static extern bool MarshalStructAsParam_AsSeqByRefOut13(out IncludeOuterIntergerStructSequential str1);