Created
July 16, 2014 20:27
-
-
Save ThuCommix/ffb1db1a2b2e69792c88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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