Home | History | Annotate | Download | only in csharp
      1 using System;
      2 using System.Runtime.InteropServices;
      3 
      4 using Clearsilver;
      5 
      6 public class CSTest {
      7    public static unsafe int Main(string[] argv) {
      8       Hdf h = new Hdf();
      9 
     10       h.setValue("foo.1","1");
     11       h.setValue("foo.2","2");
     12       Console.WriteLine("foo.2 = {0}", h.getValue("foo.2","def"));
     13 
     14       CSTContext cs = new CSTContext(h);
     15 //      cs.parseFile("test.cst");
     16       Console.WriteLine(cs.render());
     17       
     18       return 0;
     19    }
     20   
     21 
     22 
     23 }
     24