/// <summary> /// Saves the current component configuration into the property bag /// </summary> /// <param name="propertyBag">Configuration property bag</param> protected override void Save(IPropertyBag propertyBag) { propertyBag.WriteProperty("Encoding", EncodingConverter.Serialize(Encoding)); propertyBag.WriteProperty("Map", Map.IfNotNull(m => m.AssemblyQualifiedName)); }
/// <summary> /// Saves the current component configuration into the property bag /// </summary> /// <param name="propertyBag">Configuration property bag</param> protected override void Save(IPropertyBag propertyBag) { propertyBag.WriteProperty("Encoding", EncodingConverter.Serialize(Encoding)); propertyBag.WriteProperty("Modes", Modes); propertyBag.WriteProperty("Translations", XmlTranslationSetConverter.Serialize(Translations)); }