Skip to content

Instantly share code, notes, and snippets.

[DataContract(Namespace = "", Name = "user")]
public class User
{
[DataMember(Name = "id")]
public int Id { get; set; }
[DataMember(Name = "screen_name")]
public string ScreenName { get; set; }
[DataMember(Name = "name")]
private static void CurrentlyInViewChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
{
var ic = (ItemsControl) dependencyObject;
var newValue = e.NewValue;
if (ic.IsLoaded)
{
BringIntoView(ic, newValue);
}
else
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="specFlow"
type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler,
TechTalk.SpecFlow"/>
</configSections>
<specFlow>
<unitTestProvider name="MsTest" />
git clone http://github.com/techtalk/SpecFlow.git
Initialized empty Git repository in D:/mydocs/src/SpecFlow/.git/
got ae5ddb97daf6ab10aac5cb2c2b0091dc718c220e
got ac48a53137ccf88f9bdd2344368fe7dbbea63c6f
walk ac48a53137ccf88f9bdd2344368fe7dbbea63c6f
walk ae5ddb97daf6ab10aac5cb2c2b0091dc718c220e
got 40ff047f94dfecceae5f4014d32b1843de8e5f87
walk 40ff047f94dfecceae5f4014d32b1843de8e5f87
got cc14dc02d4c7b856ebe9dee883852b52f0c414f3
got 32b12d4009a5b7f0624cce9c8c01f1f5410e9aa9
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace ConsoleApplication6
{
public struct TheStruct
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace ConsoleApplication6
{
public struct TheStruct
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace ConsoleApplication6
{
public unsafe struct TheStruct
@ArildF
ArildF / gist:788775
Created January 20, 2011 22:00
WF4 async activity
using System;
using System.Activities;
namespace WorkflowConsoleApplication1
{
public class AsyncActivity : AsyncCodeActivity
{
public InArgument<int> ActivityNumber { get; set; }
protected override IAsyncResult BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, object state)
using System;
using System.Windows;
using System.Windows.Input;
using System.Windows.Markup;
using Rogue.Ptb.UI.Commands;
namespace Rogue.Ptb.UI.MarkupExtensions
{
[MarkupExtensionReturnType(typeof(ICommand))]
public class ResolveCommandExtension : MarkupExtension
@ArildF
ArildF / gist:911288
Created April 9, 2011 10:16
Replace calls with tail calls using Mono.Cecil
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mono.Cecil;
using Mono.Cecil.Cil;
namespace TailCalls
{
class Program