Serialisering […]
public class Spaceship
{
public int Hp {get; set;} = 100;
public int MaxHp {get; set;} = 100;
public int Speed {get; set;} = 2;
}{
"Hp": 100,
"MaxHp": 100,
"Speed": 2
}<?xml version="1.0"?>
<Spaceship xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<hp>100</hp>
<maxHp>100</maxHp>
<speed>2</speed>
</Spaceship>Last updated