private static void SetProperty(this DualShockState state, string property, object value)
 {
     state.GetType().InvokeMember(property,
                                  BindingFlags.Instance | BindingFlags.Public | BindingFlags.SetProperty,
                                  Type.DefaultBinder, state, new object[] { value });
 }
 private static object GetProperty(this DualShockState state, string property)
 {
     return(state.GetType().InvokeMember(property,
                                         BindingFlags.Instance | BindingFlags.Public | BindingFlags.GetProperty,
                                         Type.DefaultBinder, state, null));
 }