c# - How to store the results in a database to see history results -
c# - How to store the results in a database to see history results -
i making game people hear determine whether black or white. want store how many times got right , how many times got wrong in database can see old results.
what kind of database (like sqlite) should use? how should save info , display later?
you can utilize binaryserializtion, xmlserialization,......
so first create class:
[serializable] public class result { public int timesright {get;set;} public int timeswrong {get;set;} }
now in game:
result result = new result(); result.timesright = x; //value of times right result.timeswrong = y; //value of times wrong
now take way want save it, here references binary , xml serialization:
binary serialization xml serialization
c# database
Comments
Post a Comment