public class Program
    {
        public string str = "spp";
        public string spp = "Hello World!";

        public static void Main(string[] args)
        {
            Program p = new Program();

            Console.WriteLine(p.GetType().GetField(p.str).GetValue(p).ToString());
            Console.ReadKey();
        }
    }

相关文章:

  • 2022-12-23
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-09
  • 2022-02-24
  • 2022-12-23
  • 2021-09-29
  • 2022-01-14
  • 2021-05-26
相关资源
相似解决方案