static PropertyInfo GetPropertyByName (string name) { PropertyInfo info = typeof(CSharpFormattingPolicy).GetProperty (name); if (info == null) throw new Exception (name + " property not found"); return info; }