public T GetValue <T>(string propertyName) { return((T)configDocument.GetType().GetProperty(propertyName).GetValue(configDocument)); }