예제 #1
0
        protected override MutableObject Mutate(MutableObject mutable)
        {
            foreach (var entry in PrimaryArgument.GetEntries(mutable))
            {
                try
                {
                    var formattedString = string.Format(FormatString.GetFirstValueBelowArrity(entry),
                                                        PrimaryArgument.GetValue(entry),
                                                        SecondaryArgument.GetValue(entry));

                    TargetString.SetValue(formattedString, entry);
                }
                catch (Exception e)
                {
                    Debug.LogWarning("Warning: intermediary format exception during string parsing: " + e);
                }
            }

            return(mutable);
        }