Skip to content

Instantly share code, notes, and snippets.

View kumpera's full-sized avatar

Rodrigo Kumpera kumpera

View GitHub Profile
using System;
using System.Reflection;
class Base {
internal void Foo () {}
}
class Child {
internal void Bar () {}
}
266 Zoltan Varga
249 Atsushi Eno
181 Marek Safar
135 Rodrigo Kumpera
97 Alex Rønne Petersen
37 Sebastien Pouliot
29 Miguel de Icaza
25 Mark Probst
23 Michael Hutchinson
21 Vincent Povirk
using System;
using System.Threading;
class Driver {
static WeakReference wr;
~Driver () {
Console.WriteLine ("fin");
}
using System;
using System.Diagnostics;
class Foo<T> {}
class Program
{
static string x = "1010203830649659101020383064965910102038306496591010203830649659101020383064965910102038306496591010203830649659101020383064965910102038306496591010203830649659101020383064965910102038306496591010203830649659" +
"1010203830649659101020383064965910102038306496591010203830649659101020383064965910102038306496591010203830649659101020383064965910102038306496591010203830649659101020383064965910102038306496591010203830649659" +
"1010203830649659101020383064965910102038306496591010203830649659101020383064965910102038306496591010203830649659101020383064965910102038306496591010203830649659101020383064965910102038306496591010203830649659" +
"1010203830649659101020383064965910102038306496591010203830649659101020383064965910102038306496591010203830649659101020383064965910102038306496591010203830649659101020383064965910102038306496591010203830649659" +
Process: XamarinStudio [55143]
Path: /Applications/Xamarin Studio.app/Contents/MacOS/XamarinStudio
Identifier: com.xamarin.monodevelop
Version: 4.2.1.1 (4.2.1.1)
Code Type: X86 (Native)
Parent Process: launchd [229]
User ID: 501
Date/Time: 2013-12-06 17:27:35.731 -0500
OS Version: Mac OS X 10.8.5 (12F45)
using System;
using System.Reflection;
using System.Reflection.Emit;
class Test
{
public static void Main ()
{
Assembly testAssembly = typeof (Test).Assembly;
string loadString = null;
using System;
namespace ConsoleApplication8
{
class Program
{
static object value;
static void Main (string[] args)
{
_InterlockedCompareExchange64:
00000000 b5f0 push {r4, r5, r6, r7, lr}
00000002 af03 add r7, sp, #12
00000004 4699 mov r9, r3
00000006 4694 mov ip, r2
00000008 468e mov lr, r1
0000000a 68bd ldr r5, [r7, #8]
0000000c 4604 mov r4, r0
0000000e f3bf8f5b dmb ish
00000012 e8d4237f ldrexd r2, r3, [r4]
InterlockedCompareExchange64:
@ args = 8, pretend = 0, frame = 0
@ frame_needed = 0, uses_anonymous_args = 0
@ link register save eliminated.
stmfd sp!, {r4, r5, r6, r7}
ldrd r4, [sp, #16]
dmb sy
.L2:
ldrexd r6, r7, [r0]
cmp r7, r5
using System;
using System.Threading;
using System.Threading.Tasks;
class Driver {
static void Main () {