Beispiel #1
0
 private IEnumerable <string> FormatNamedArgument(NamedArgument namedArgument)
 {
     return(MarkupExtensionFormatterBase.Format($"{namedArgument.Name}=", this.FormatValue(namedArgument.Value)));
 }
Beispiel #2
0
 public IEnumerable <string> FormatArguments(MarkupExtension markupExtension, bool isNested = false)
 {
     return(markupExtension.Arguments.Any()
         ? MarkupExtensionFormatterBase.Format($"{{{markupExtension.TypeName} ", this.FormatArguments(markupExtension.Arguments, isNested: isNested), "}")
         : new string[] { $"{{{markupExtension.TypeName}}}" });
 }