本文整理汇总了C#中SerializationContext.WriteVersion方法的典型用法代码示例。如果您正苦于以下问题:C# SerializationContext.WriteVersion方法的具体用法?C# SerializationContext.WriteVersion怎么用?C# SerializationContext.WriteVersion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SerializationContext
的用法示例。
在下文中一共展示了SerializationContext.WriteVersion方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetObjectData
public override void GetObjectData(SerializationContext output)
{
base.GetObjectData(output);
output.WriteVersion(1);
output.Write(ROM);
}
示例2: GetObjectData
public override void GetObjectData(SerializationContext output)
{
base.GetObjectData(output);
output.WriteVersion(2);
output.Write(ROM);
output.Write(Bank);
output.WriteOptional(RAM);
}
示例3: GetObjectData
public override void GetObjectData(SerializationContext output)
{
if (_pokeySound == null)
throw new Emu7800SerializationException("Cart7832P must be attached before serialization.");
base.GetObjectData(output);
output.WriteVersion(1);
output.Write(ROM);
output.WriteOptional(_pokeySound);
}
示例4: GetObjectData
public override void GetObjectData(SerializationContext output)
{
base.GetObjectData(output);
output.WriteVersion(1);
output.Write(ROM);
output.Write(BankBaseAddr);
output.Write(Tops);
output.Write(Bots);
output.Write(Counters);
output.Write(Flags);
output.Write(MusicMode);
output.Write(LastSystemClock);
output.Write(FractionalClocks);
output.Write(_ShiftRegister);
}
示例5: GetObjectData
public override void GetObjectData(SerializationContext output)
{
base.GetObjectData(output);
output.WriteVersion(1);
output.Write(Mem);
output.Write(CPU);
output.Write(Maria);
output.Write(PIA);
output.Write(RAM1);
output.Write(RAM2);
output.WriteOptional(BIOS);
output.WriteOptional(HSC);
output.Write(Cart);
}
示例6: GetObjectData
public override void GetObjectData(SerializationContext output)
{
base.GetObjectData(output);
output.WriteVersion(1);
output.Write(ROM);
output.Write(RAM);
output.Write(BankBaseAddr);
output.Write(BankBaseRAMAddr);
output.Write(RAMBankOn);
}
示例7: GetObjectData
public override void GetObjectData(SerializationContext output)
{
base.GetObjectData(output);
output.WriteVersion(1);
output.Write(Mem);
output.Write(CPU);
output.Write(TIA);
output.Write(PIA);
output.Write(Cart);
}