public void TestGetFieldInfo()
 {
     Assert.Equal(
         typeof(IlFieldInfoTest).GetField("Test"),
         IlFieldInfo.GetFieldInfo(() => Test)
         );
 }
Пример #2
0
 public AstNodeExprLValue PrefixDestinationEnabled() => Ast.FieldAccess(PrefixDestination(),
                                                                        IlFieldInfo.GetFieldInfo(() => CpuThreadStateMethods.PrefixDestination.Enabled));
Пример #3
0
 public AstNodeExprLValue PrefixDestination() => Ast.FieldAccess(Ast.CpuThreadStateExpr,
                                                                 IlFieldInfo.GetFieldInfo(() => CpuThreadStateMethods.PrefixSource));
Пример #4
0
 public AstNodeExprLValue PrefixSourceEnabled() => Ast.FieldAccess(PrefixSource(),
                                                                   IlFieldInfo.GetFieldInfo(() => CpuThreadStateMethods.PrefixSource.Enabled));