Skip to content

Instantly share code, notes, and snippets.

View jmarolf's full-sized avatar

Jonathon Marolf jmarolf

View GitHub Profile
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main(string[] args)
{
var list = new List<int>();
list.Where(x => x % 2 == 0)
.OrderByDescending(x => x)
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main(string[] args)
{
var list = new List<int>();
list.Where(x => x % 2 == 0).OrderByDescending(x => x)
.Select(x => x);
@jmarolf
jmarolf / gist:4b55afdd9a4c5269580c
Created April 4, 2015 22:46
Get parse errors from string.
using System;
using System.Collections;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Text;
class Program
{
static void Main(string[] args)
{
@jmarolf
jmarolf / gist:2325f55a12f2e1c48aa7
Created March 27, 2015 22:52
Adding reference and modifying document
using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.MSBuild;
namespace ConsoleApplication11
{
class Program
{