export module TestNs { export class TestClass { public fn(): void{ debugger; } } }
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TypeScriptPage.aspx.cs" Inherits="WebApplication1.TypeScriptPage" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div id="div1"> </div> <script src="Scripts/r.js"></script> <script src="Scripts/require.js"></script> <script src="Scripts/TypeScriptBegin.js"></script> <script type="text/javascript"> var testObj = new TestNs.TestClass(); testObj.fn(); </script> </form> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)