Skip to content

Commit

Permalink
Change back to using string.Format so that NET 4.0 builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
simplyio committed Mar 8, 2016
1 parent 9859718 commit 7e6b557
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Shortcoder.Tests.DummyShortcodes
using System;

namespace Shortcoder.Tests.DummyShortcodes
{
public class DummyAdvancedShortcode : Shortcode
{
Expand All @@ -7,12 +9,11 @@ public class DummyAdvancedShortcode : Shortcode

public override string Generate(IShortcodeContext context)
{
//var parsedContent = context.Parser.Parse(Content);
if (!string.IsNullOrEmpty(Content)) {
return $"Hello {Name}, {Age} ({Content})";
return string.Format("Hello {0}, {1} ({2})", Name, Age, Content);
}

return $"Hello {Name}, {Age}";
return string.Format("Hello {0}, {1}", Name, Age);
}
}
}

0 comments on commit 7e6b557

Please sign in to comment.