Tag:Class fields

  • C dynamic dynamic type and anonymous class


    To show respect for the original author, first post the original link: https://www.cnblogs.com/hnsongbiao/p/8250956.html Here is the text:   Dynamic typeSimple example Dynamic expando = new system. Dynamic. Expandoobject(); // dynamic type fields are readable and writable expando.Id = 1; expando.Name = “Test”; String JSON = utils. Convertjson. Jsonencode (expando); // output {ID: 1, name: ‘test’} […]