Example #1
0
        internal void Serialize(ISettingsSerializationContext context)
        {
            foreach (var property in _properties)
            {
                context.Serialize(property.Key, property.Value.CreateFactory(context.Settings, property.Key));
            }

            foreach (var child in _children)
            {
                context.SerializeChild(child);
            }
        }
        public static void Serialize(this INotifyPropertyChanged content, ISettingsSerializationContext context)
        {
            var serializer = SettingSerializer.GetSerializer(content.GetType());

            serializer.Serialize(context);
        }