This file contains hidden or 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 static void ParseMyCode(string code) | |
{ | |
var sourceLanguage = new CSharpLanguage(); | |
SyntaxTree syntaxTree = sourceLanguage.ParseText(code, SourceCodeKind.Regular); | |
} |
This file contains hidden or 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 private auto ansi '<Module>' | |
{ | |
} // end of class <Module> | |
.class public auto ansi beforefieldinit C | |
extends [mscorlib]System.Object | |
{ | |
// Methods | |
.method public hidebysig | |
instance void M () cil managed |
This file contains hidden or 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
// 1: Object Initializer ////////////////////////////////// | |
public class User { | |
public bool IsActive { get; set; } | |
public string Name { get; set; } | |
} | |
var user = new User { |
This file contains hidden or 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
ActionsToBuildUp = () => true; | |
ActionsToBuildUp += () => false; | |
bool result = ActionsToBuildUp(); // returns false |
This file contains hidden or 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 static IHtmlString PageHeading(this HtmlHelper html, Icon icon, string title, string subTitle) | |
{ | |
WebViewPage page = html.ViewDataContainer as WebViewPage; | |
if (page != null) | |
{ | |
page.DefineSection("Heading", () => { | |
page.Write(MvcHtmlString.Create("My Text")); | |
}); | |
} |
This file contains hidden or 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
<tbody> | |
<tr> | |
<td rowspan="4"> | |
<select> | |
skip, remap etc. | |
</select> | |
</td> | |
</tr> | |
<tr id=skip> |
This file contains hidden or 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 System; | |
using System.Linq.Expressions; | |
namespace ExpressionDemo2 | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ |
This file contains hidden or 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
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
var myClass = new ExpressionTest(); | |
// Ambig. | |
myClass.TestMethod(myExpression1:x => x.ToString()); |
NewerOlder