예제 #1
0
파일: CP0.cs 프로젝트: thild/umipss
 static PropertyInfo GetPropertyInfo(Cp0Reg r)
 {
     var propertyInfo = typeof(CP0).GetProperty (r.ToString (), BindingFlags.Public | BindingFlags.Static);
     return propertyInfo;
 }
예제 #2
0
파일: CP0.cs 프로젝트: thild/umipss
 public static void SetRegister(Cp0Reg r, int value)
 {
     var propertyInfo = GetPropertyInfo (r);
     propertyInfo.SetValue(null, value);
 }
예제 #3
0
파일: CP0.cs 프로젝트: thild/umipss
 public static int GetRegister(Cp0Reg r)
 {
     var propertyInfo = GetPropertyInfo (r);
     return (int) propertyInfo.GetValue(null, null);
 }
예제 #4
0
파일: CP0.cs 프로젝트: thild/umipss
        static PropertyInfo GetPropertyInfo(Cp0Reg r)
        {
            var propertyInfo = typeof(CP0).GetProperty(r.ToString(), BindingFlags.Public | BindingFlags.Static);

            return(propertyInfo);
        }
예제 #5
0
파일: CP0.cs 프로젝트: thild/umipss
        public static void SetRegister(Cp0Reg r, int value)
        {
            var propertyInfo = GetPropertyInfo(r);

            propertyInfo.SetValue(null, value);
        }
예제 #6
0
파일: CP0.cs 프로젝트: thild/umipss
        public static int GetRegister(Cp0Reg r)
        {
            var propertyInfo = GetPropertyInfo(r);

            return((int)propertyInfo.GetValue(null, null));
        }