예제 #1
0
        public static void Replace(this LocalizedText text, string toReplace, string replacement)
        {
            var props = text.GetType().GetProperties();

            foreach (var prop in props)
            {
                var curVal = prop.GetValue(text).ToString();
                prop.SetValue(text, curVal.Replace(toReplace, replacement));
            }
        }