This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Program | |
{ | |
public static void Main() | |
{ | |
// C# Classes | |
var person = new Person(); | |
// Set C# Property | |
person.Name = "Frank"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App | |
{ | |
public static void Main() | |
{ | |
// Simple array of strings | |
string[] names = { "Mildred", "Levi", "Nestor", "Clark", "Jamie" }; | |
// Query the array using LINQ | |
IEnumerable query = | |
from n in names |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App | |
{ | |
public static void Main() | |
{ | |
List<string> names = new List<string>() | |
{ | |
"Mildred", "Levi", "Nestor", "Clark", "Jamie" | |
}; | |
IEnumerable filteredNames = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"output": "Bridge/output", | |
"generateTypeScript": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="Bridge/output/demo.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person | |
{ | |
public string First { get; set; } = "Jane"; | |
public string Last { get; set; } = "Doe"; | |
} | |
class App | |
{ | |
static void Main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using static System.Console; | |
using static System.Math; | |
using static System.DayOfWeek; | |
class Program | |
{ | |
static void Main() | |
{ | |
WriteLine(Sqrt(3*3 + 4*4)); | |
WriteLine(Friday - Monday); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class App | |
{ | |
static void Main() | |
{ | |
var numbers = new Dictionary<int, string> { | |
[7] = "seven", | |
[9] = "nine", | |
[13] = "thirteen" | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Bridge; | |
using Bridge.Html5; | |
using Bridge.QUnit; | |
using System; | |
using System.Text; | |
namespace ClientTestLibrary | |
{ | |
class TestStringBuilderFunctions | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Bridge; | |
using Bridge.Html5; | |
using Bridge.WebGL; | |
using System; | |
namespace WebGL | |
{ | |
public class Program | |
{ | |
public static void Run() |