App.cs 768 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Bridge.Html5;
  2. namespace DuckInterface
  3. {
  4. public class App
  5. {
  6. public static void Main()
  7. {
  8. var svc1 = InterfaceCreator.Create<ISvc1>("sst");
  9. svc1.Op1("");
  10. svc1.Op2();
  11. svc1.Op3();
  12. Window.Set("Svc1", svc1);
  13. }
  14. }
  15. // d.ts DocGen test
  16. /// <summary>
  17. /// XmlDoc Summary of ISvc1
  18. /// </summary>
  19. public interface ISvc1
  20. {
  21. /// <summary>
  22. /// XmlDoc Summary of Op1
  23. /// </summary>
  24. /// <param name="a">XmlDoc Param of a</param>
  25. /// <param name="x">XmlDoc Param of x</param>
  26. /// <returns>XmlDoc Return</returns>
  27. string Op1(string a, int x = 0);
  28. string Op2();
  29. string Op3();
  30. }
  31. }