Skip to content

Instantly share code, notes, and snippets.

@praeclarum
praeclarum / Layout.cs
Created March 16, 2013 05:23
A C# syntax for NSLayoutConstraints.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using MonoTouch.UIKit;
namespace Async.iOS
{
public static class Layout
{
@johnw86
johnw86 / Controller
Created May 28, 2012 19:40
Working with Google Visualizations in C# MVC and Razor
public ActionResult Index()
{
ViewBag.Data = new Bortosky.Google.Visualization.GoogleDataTable(ExampleTable()).GetJson();
return View();
}
private static DataTable ExampleTable()
{
var dt = new DataTable();