Bofa/src/Testing/Serialization.bf

27 lines
457 B
Beef
Raw Normal View History

2024-08-23 21:25:13 +02:00
namespace Bofa.Testing;
using System;
2024-08-26 12:35:29 +02:00
using System.Collections;
2024-08-23 21:25:13 +02:00
using Bofa;
using Bofa.Serialization;
[BofaSerialize]
class Serialization
{
2024-08-26 12:35:29 +02:00
public int anInteger = 1;
public String aString = "Value";
public List<String> listOfStrings = new .() ~ DeleteContainerAndItems!(_);
2024-08-23 21:25:13 +02:00
[Test]
public static void Test()
{
Serialization s = scope .();
2024-08-26 12:35:29 +02:00
s.listOfStrings.Add(new .("dfdsfdsfdsf"));
2024-08-23 21:25:13 +02:00
Bofa b = scope .();
b.Name = "s";
s.Serialize(b);
}
}