Skip to content

Instantly share code, notes, and snippets.

Kevin Pilch Pilchie

Block or report user

Report or block Pilchie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View RTL Comments
/// <summary>
/// אבגדהוז חטיכלמנ סעפצקרשת
/// </summary>
public class ClassWithHebrewSummary { }
class Program
{
static void Main(string[] args)
{
ClassWithHebrewSummary.Equals(null, null);
@Pilchie
Pilchie / gist:5087540
Created Mar 5, 2013
Getting variables declared in a session.
View gist:5087540
using Roslyn.Scripting.CSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
class Program
{
static void Main(string[] args)
{
View gist:3489783
class Program
{
static void Main(string[] args)
{
var view = new MyView();
view.Bind/*<MyViewModel, MyView, int>*/(view.ViewModel, vm => vm.Prop1, v => v.Prop2);
}
}
class MyViewModel
@Pilchie
Pilchie / DateTimeRoundTrip.csx
Created Jul 20, 2012
"RoundTrip" format for DateTime
View DateTimeRoundTrip.csx
using System.Globalization;
var dt = DateTime.UtcNow;
var dt2 = DateTime.ParseExact(dt.ToString("o", CultureInfo.InvariantCulture), "o", CultureInfo.InvariantCulture);
Console.WriteLine(dt == dt2);
You can’t perform that action at this time.