public void SetConfig(WebConfiguration config, SPWeb web)
 {
     web.Properties[s] = SerializeHelper.ToXmlString <WebConfiguration>(config);
     web.Properties.Update();
 }
 public void SetConfig(FarmConfiguration config, SPFarm farm)
 {
     farm.Properties[s] = SerializeHelper.ToXmlString <FarmConfiguration>(config);
     farm.Update();
 }