protected override void Init()
        {
            base.Init();

            var filteredOptions = SerializerOptions.Default
                                  .WithTypeFilter(
                TypeFilterBuilder.Create()
                .Include <StandardStruct>()
                .Include <BlittableStruct>()
                .Include <TestEnum>()
                .Build());

            _filteredSerializer = new Serializer(filteredOptions);

            standardValue  = new StandardStruct(1, "John", "Doe", isLoggedIn: false);
            blittableValue = new BlittableStruct(59, 92);
            testEnum       = TestEnum.HatesAll;
        }
示例#2
0
 protected override void Init()
 {
     standardValue  = new StandardStruct(1, "John", "Doe", isLoggedIn: false);
     blittableValue = new BlittableStruct(59, 92);
     testEnum       = TestEnum.HatesAll;
 }