I have the following XML:
<appSettings>
<add key="Prop1" value="1" />
<add key="Prop2" value="2" />
</appSettings>
Is there a LINQ to XML query to load this section to a single instance of a ConfigProp class?
public class ConfigProp
{
public string Prop1 {get; set;}
public string Prop2 {get; set;}
}
Why you dont't use this?
System.Configuration.ConfigurationManager.AppSettings["Prop1"];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With