static PropertyInfo GetPropertyInfo(Cp0Reg r) { var propertyInfo = typeof(CP0).GetProperty (r.ToString (), BindingFlags.Public | BindingFlags.Static); return propertyInfo; }
public static void SetRegister(Cp0Reg r, int value) { var propertyInfo = GetPropertyInfo (r); propertyInfo.SetValue(null, value); }
public static int GetRegister(Cp0Reg r) { var propertyInfo = GetPropertyInfo (r); return (int) propertyInfo.GetValue(null, null); }
static PropertyInfo GetPropertyInfo(Cp0Reg r) { var propertyInfo = typeof(CP0).GetProperty(r.ToString(), BindingFlags.Public | BindingFlags.Static); return(propertyInfo); }
public static void SetRegister(Cp0Reg r, int value) { var propertyInfo = GetPropertyInfo(r); propertyInfo.SetValue(null, value); }
public static int GetRegister(Cp0Reg r) { var propertyInfo = GetPropertyInfo(r); return((int)propertyInfo.GetValue(null, null)); }