8,290
edits
No edit summary |
No edit summary |
||
Line 67: | Line 67: | ||
} | } | ||
} | } | ||
</syntaxhighlight>Below is an additional example segment of code with comments that shows how you might serialize a custom list.<syntaxhighlight lang="csharp"> | </syntaxhighlight> | ||
Below is an additional example segment of code with comments that shows how you might serialize a custom list. | |||
{{Missing info|The code below assumes that <code>StandAbility</code> has implemented a meaningful Save method when it calls <code>ability.Save(Writer)</code>. It's not really a complete example.}} | |||
<syntaxhighlight lang="csharp"> | |||
... | ... | ||
// The non-serialized attribute signals not to save this list when SaveData is called. | // The non-serialized attribute signals not to save this list when SaveData is called. |