Map xml string property to C# properties
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to map a xml property to c# properties. var src = new Source(); src.Id = 1; src.Name = "Test"; src.Address = "<Country>MyCountry</Country><Prefecture>MyPrefecture</Prefecture><City>MyCity</City>"; class Source { public string ID{ get; set; } public string Name{ get; set; } public string Address{ get; set; } } Class Destination { public string ID{ get; set; } public string Name{ get; set; } public string Country { get; set;} public string Prefecture { get; set;} public string City { get; set;} } Is it possible to achieve it through