public static void TestDerivedGenericInterface() { i1 o1 = new c2(); var c = new c0 { I = 16 }; var x = o1.m1 <c0>(c).Result; Assert.AreEqual(c, x, "The value from the derived class matches the value passed."); }
public TempContent(eCArchiveFile a_Stream) { int q = a_Stream.Read<int>(); data = new List<c0>(q); for (int i = 0; i < data.Capacity; i++) { c0 c = new c0(); c.s0 = a_Stream.Read<short>(); c.st0 = new bCString(a_Stream); c.i0 = a_Stream.Read<int>(); c.obj = new bCAccessorPropertyObject(a_Stream); c.i1 = a_Stream.Read<int>(); data.Add(c); } }
public override void deSerialize(IFile a_File) { a_File.Position = 14L; i0 = a_File.Read<int>(); if (i0 != 875579463) return; i1 = a_File.Read<int>(); C = new List<c0>(); for (int i = 0; i < 10; i++) { c0 c = new c0(); c.i2 = a_File.Read<int>(); c.obj = new bCAccessorPropertyObject(a_File); c.s0 = new bCString(a_File); c.i3 = a_File.Read<int>(); a_File.Position += 16; C.Add(c); } }
public eCSubMesh(IFile a_File) { int q = (int)a_File.Position / 413; Version = a_File.Read<short>(); int v10 = a_File.Read<int>() / 32; data = new List<c0>(); int i = 0; while (true) { c0 c = new c0(); c.m0 = new bCBox(a_File); c.m1 = a_File.Read<int>(); c.m2 = a_File.Read<int>(); data.Add(c); ++i; if (i >= v10) break; } if(a_File.Length > (q + 1) * 408 + 5) a_File.Position = (q + 1) * 408 + 5; }