Skip to content

Instantly share code, notes, and snippets.

View AlexProgrammer's full-sized avatar

AlexProgrammer

View GitHub Profile
@AlexProgrammer
AlexProgrammer / interlockedorderedsample.cs
Created September 29, 2011 18:43
Ordered Interlocked
using System;
using System.Threading;
namespace ThreadingInterlock
{
class Program
{
private static long threadCount = 0;
@AlexProgrammer
AlexProgrammer / select ienumerable.linq
Created September 28, 2011 18:22
LINQ XDocument Select IEnumerable elements
/*
Sample XML
<ImportExportXml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Entities>
<Entity>
<EntityInfo>
<entity>
<attributes>
<attribute>