This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MethodBaseRocks.cs | |
// | |
// Author: | |
// Jb Evain (jbevain@novell.com) | |
// | |
// WARNING: code now lives in http://github.com/jbevain/mono.reflection | |
// | |
// (C) 2009 Novell, Inc. (http://www.novell.com) | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// BackingFieldResolver.cs | |
// | |
// Author: | |
// Jb Evain (jbevain@novell.com) | |
// | |
// WARNING: code now lives in http://github.com/jbevain/mono.reflection | |
// | |
// (C) 2009 Novell, Inc. (http://www.novell.com) | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
using System.Linq; | |
using Mono.Cecil; | |
class Rebase { | |
static void Main () | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
// from http://themechanicalbride.blogspot.com/2009/07/introducing-rx-linq-to-events.html | |
class Program { | |
static void Main () | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using SR = System.Reflection; | |
using Mono.Cecil; | |
class Program { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Image.cs | |
// | |
// Author: | |
// Jb Evain (jbevain@novell.com) | |
// | |
// WARNING: code now lives in http://github.com/jbevain/mono.reflection | |
// | |
// (C) 2009 Novell, Inc. (http://www.novell.com) | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Mono.Cecil.Cil/MethodBody.cs b/Mono.Cecil.Cil/MethodBody.cs | |
index 6f818fe..bce81b4 100644 | |
--- a/Mono.Cecil.Cil/MethodBody.cs | |
+++ b/Mono.Cecil.Cil/MethodBody.cs | |
@@ -46,6 +46,7 @@ namespace Mono.Cecil.Cil { | |
internal Collection<ExceptionHandler> exceptions; | |
internal Collection<VariableDefinition> variables; | |
Scope scope; | |
+ TypeDefinition iterator_type; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Mono.Cecil; | |
using Mono.Cecil.Cil; | |
class MethodProcessor { | |
readonly MethodBody body; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mcs/mcs/cs-parser.jay b/mcs/mcs/cs-parser.jay | |
index b718931..70051f1 100644 | |
--- a/mcs/mcs/cs-parser.jay | |
+++ b/mcs/mcs/cs-parser.jay | |
@@ -2705,6 +2705,22 @@ delegate_declaration | |
} | |
; | |
+opt_enumerable_or_nullable | |
+ : opt_enumerable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
class Node { | |
public string Text { get; private set; } | |
public IList<Node> Children { get; private set; } |
OlderNewer