[stringtemplate-interest] In C#, StringTemplate seems not to have a constructor with one argument
Thomas Gagne
tggagne at gmail.com
Wed Jun 24 10:21:47 PDT 2009
After getting it built, the first thing I thought I'd try doing in my own
project (after referencing Template's assemblies) is a helloWorldTest()
[TestMethod]
public void helloWorldTest()
{
StringTemplate hello = new StringTemplate("Hello, $name$");
hello.SetAttribute("name", "World");
Console.Out.WriteLine(hello.ToString());
}
Unfortunately, I can't compile it because I'm told there isn't a
StringTemplate constructor that takes one argument. Odd. I'll keep looking
around but thought perhaps others have seen this problem.
I think I'll go back to my StringTemplate solution and take a closer look at
the tests there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20090624/fad18d73/attachment.html
More information about the stringtemplate-interest
mailing list