Skip to content

Instantly share code, notes, and snippets.

@amazedsaint
amazedsaint / metadata.json
Created September 14, 2021 16:14
New Project
{"valueParameterDescriptions":[],"slotParameterDescriptions":[],"roleDescriptions":[],"contractType":"O","contractName":"","contractDescription":"","choiceDescriptions":[]}
@amazedsaint
amazedsaint / ConsoleDumpWalker.cs
Created October 3, 2012 19:01
Syntax Tree Dumper using Roslyn SyntaxWalker
using System;
using System.Linq;
using Roslyn.Compilers.CSharp;
namespace RoslynApp
{
public static class SyntaxTreeExtensions
{
public static void Dump(this SyntaxTree tree)
@amazedsaint
amazedsaint / ScriptingDemo.cs
Created October 3, 2012 18:46
C# Roslyn Scripting Host Example
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Dynamic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.CompilerServices;
using Microsoft.CSharp.RuntimeBinder;