コード例 #1
0
 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));