public static int test_0_isreference_intrins () { if (RuntimeHelpers.IsReferenceOrContainsReferences<int> ()) return 1; if (!RuntimeHelpers.IsReferenceOrContainsReferences<string> ()) return 2; if (!RuntimeHelpers.IsReferenceOrContainsReferences<RefStruct> ()) return 3; if (!RuntimeHelpers.IsReferenceOrContainsReferences<NestedRefStruct> ()) return 4; if (RuntimeHelpers.IsReferenceOrContainsReferences<NoRefStruct> ()) return 5; // Generic code if (is_ref_or_contains_refs<int> ()) return 6; // Shared code if (!is_ref_or_contains_refs<string> ()) return 7; // Complex type from shared code if (!is_ref_or_contains_refs_gen_ref<string> ()) return 8; if (is_ref_or_contains_refs_gen_ref<int> ()) return 9; if (is_ref_or_contains_refs_gen_noref<string> ()) return 10; // Complex type from shared class method var c1 = new IsRefClass<AStruct3<int, int, int>> (); if (c1.is_ref ()) return 11; var c2 = new IsRefClass<AStruct3<string, int, int>> (); if (!c2.is_ref ()) return 12; return 0; }
public static int test_0_isreference_intrins() { if (RuntimeHelpers.IsReferenceOrContainsReferences <int> ()) { return(1); } if (!RuntimeHelpers.IsReferenceOrContainsReferences <string> ()) { return(2); } if (!RuntimeHelpers.IsReferenceOrContainsReferences <RefStruct> ()) { return(3); } if (!RuntimeHelpers.IsReferenceOrContainsReferences <NestedRefStruct> ()) { return(4); } if (RuntimeHelpers.IsReferenceOrContainsReferences <NoRefStruct> ()) { return(5); } // Generic code if (is_ref_or_contains_refs <int> ()) { return(6); } // Shared code if (!is_ref_or_contains_refs <string> ()) { return(7); } // Complex type from shared code if (!is_ref_or_contains_refs_gen_ref <string> ()) { return(8); } if (is_ref_or_contains_refs_gen_ref <int> ()) { return(9); } if (is_ref_or_contains_refs_gen_noref <string> ()) { return(10); } // Complex type from shared class method var c1 = new IsRefClass <AStruct3 <int, int, int> > (); if (c1.is_ref()) { return(11); } var c2 = new IsRefClass <AStruct3 <string, int, int> > (); if (!c2.is_ref()) { return(12); } return(0); }