public void Setup() { _data = File.ReadAllBytes("test.bin"); var model = TypeModel.Create(); model.Add(typeof(protogen.Database), true); model.Add(typeof(protogen.Order), true); model.Add(typeof(protogen.OrderLine), true); model.CompileInPlace(); _cip = model; _c = model.Compile(); #if !(NETCOREAPP2_0 || NETCOREAPP2_1 || NETCOREAPP3_0) _dll = model.Compile("MySerializer", "DalSerializer.dll"); #endif _auto = TypeModel.CreateForAssembly <protogen.Database>(); }