//сериализация класса Armour private static void ObjectSerializationArmour(ref string str, object obj) { Armour item = (Armour)obj; Type type = item.GetType(); str += type.ToString() + "{"; foreach (PropertyInfo param in type.GetProperties()) { str += param.PropertyType + ":" + param.GetValue(item) + ","; } }