private static void Save(Type type)
 {
     using (ServiceBussiness sb = new ServiceBussiness())
     {
         foreach (FieldInfo fieldInfo in type.GetFields())
         {
             if (fieldInfo.IsStatic)
             {
                 object[] customAttributes = fieldInfo.GetCustomAttributes(typeof(ConfigPropertyAttribute), false);
                 if (customAttributes.Length != 0)
                 {
                     GameProperties.SaveProperty((ConfigPropertyAttribute)customAttributes[0], sb, fieldInfo.GetValue((object)null));
                 }
             }
         }
     }
 }
 private static void Save(Type type)
 {
     using (ServiceBussiness serviceBussiness = new ServiceBussiness())
     {
         FieldInfo[] fields = type.GetFields();
         for (int i = 0; i < fields.Length; i++)
         {
             FieldInfo fieldInfo = fields[i];
             if (fieldInfo.IsStatic)
             {
                 object[] customAttributes = fieldInfo.GetCustomAttributes(typeof(ConfigPropertyAttribute), false);
                 if (customAttributes.Length != 0)
                 {
                     ConfigPropertyAttribute attrib = (ConfigPropertyAttribute)customAttributes[0];
                     GameProperties.SaveProperty(attrib, serviceBussiness, fieldInfo.GetValue(null));
                 }
             }
         }
     }
 }