Changes

Jump to navigation Jump to search
Line 68: Line 68:  
The ''data model'' is a C# class you create, with properties representing the data you want to store. It can contain almost anything from a few boolean fields to a complex object graph. Here's a simple data model:
 
The ''data model'' is a C# class you create, with properties representing the data you want to store. It can contain almost anything from a few boolean fields to a complex object graph. Here's a simple data model:
 
<syntaxhighlight lang="c#">
 
<syntaxhighlight lang="c#">
class ModData
+
public sealed class ModData
 
{
 
{
 
   public bool ExampleBoolean { get; set; }
 
   public bool ExampleBoolean { get; set; }
Line 82: Line 82:  
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
Only public properties and fields will be serialized.
    
===Default values===
 
===Default values===
528

edits

Navigation menu