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 abstract class FormElement2 | |
{ | |
public Guid Id { get; set; } | |
public int Order { get; set; } | |
} | |
public abstract class FieldControl2 : FormElement2 | |
{ | |
public string Label { get; set; } | |
public string Trailer { get; set; } |
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 Typewriter.Extensions.WebApi; | |
using Typewriter.Extensions.Types; | |
string ReturnType(Method m) => m.Type.Name == "IHttpActionResult" ? "void" : m.Type.Name; | |
string ServiceName(Class c) => c.Name.Replace("Controller", "Gateway"); | |
string ParentServiceName(Method m) => ServiceName((Class)m.Parent); | |
static List<String> VisitedTypes = new List<String>(); | |
static List<String> VisitedEnums = new List<String>(); |
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
// JS array equivalents to C# LINQ methods - by Dan B. | |
// Here's a simple array of "person" objects | |
var people = [ | |
{ name: "John", age: 20 }, | |
{ name: "Mary", age: 35 }, | |
{ name: "Arthur", age: 78 }, | |
{ name: "Mike", age: 27 }, | |
{ name: "Judy", age: 42 }, | |
{ name: "Tim", age: 8 } |