示例#1
0
 private GameRound GetRound(Game game, Int32 roundIndex)
 {
     return(((GameRound[])game
             .GetType()
             .GetFields(BindingFlags.Instance | BindingFlags.NonPublic)[1]
             .GetValue(game))[roundIndex]);
 }
示例#2
0
 private void SetCurrentRound(Game game, Int32 value)
 {
     game
     .GetType()
     .GetProperties(BindingFlags.Instance | BindingFlags.NonPublic)
     .First()
     .SetValue(game, value);
 }