Skip to content

Instantly share code, notes, and snippets.

@ThuCommix
Created July 16, 2014 20:27
Show Gist options
  • Save ThuCommix/ffb1db1a2b2e69792c88 to your computer and use it in GitHub Desktop.
Save ThuCommix/ffb1db1a2b2e69792c88 to your computer and use it in GitHub Desktop.
[Serializable]
public class SerialCode
{
public string Code{set; get;}
public string GameName{set; get;}
public string Description{set; get;}
}
public SerialCodeProvider
{
public List<SerialCode> SerialCodes{set; get;}
public SerialCodeProvider()
{
SerialCodes = new List<SerialCode>();
}
public static SerialCodeProvider Load()
{
return (SerialCodeProvider) new BinaryFormatter(new FileStream("pfad", FileMode, FileAccess));
}
public void Save()
{
new BinaryFormatter(new FileStream("pfad", FileMode, FileAccess), this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment