Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication5
{
interface IA
--- a/main/src/core/Mono.Texteditor/Mono.TextEditor/GtkWorkarounds.cs
+++ b/main/src/core/Mono.Texteditor/Mono.TextEditor/GtkWorkarounds.cs
@@ -686,8 +686,10 @@ namespace Mono.TextEditor
il.Emit (OpCodes.Ldloc, loc_obj);
il.Emit (OpCodes.Brfalse, IL_002b);
+ var tref = typeof (GLib.Object).Assembly.GetType ("GLib.ToggleRef");
il.Emit (OpCodes.Ldloc, loc_obj);
- il.Emit (OpCodes.Callvirt, typeof (GLib.Object).Assembly.GetType ("GLib.ToggleRef").GetProperty ("Target")
+ il.Emit (OpCodes.Castclass, tref);
using System.Collections.Generic;
using System.Linq;
interface IMethod
{
}
class C
{
public IEnumerable<IEnumerable<IMethod>> GetExtensionMethods()
using System;
class C
{
public static void Main ()
{
G<int>.Foo ();
}
}
diff --git a/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpBindingCompilerManager.cs b/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpBindingCompilerManager.cs
index 45ca0b6..164b02e 100644
--- a/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpBindingCompilerManager.cs
+++ b/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpBindingCompilerManager.cs
@@ -288,8 +288,22 @@ namespace MonoDevelop.CSharp
monitor.ReportError (message, e);
return null;
}
+
+ string corlibRef = "";
using System;
namespace testd
{
class MainClass
{
public int v;
public static void Main (string[] args)
{
<p><strong>Description: </strong>HTTP 500. Error processing request.</p>
<p><strong>Stack Trace: </strong></p><table summary="Stack Trace" class="sampleCode">
<tr><td><pre>System.ArgumentException: CacheControl property only allows `public', `private' or no-cache, for different uses, use Response.AppendHeader
at System.Web.HttpResponse.set_CacheControl (System.String value) [0x00000] in &lt;filename unknown&gt;:0
at System.Web.Handlers.AssemblyResourceLoader.RespondWithNotModified (System.Web.HttpContext context) [0x00000] in &lt;filename unknown&gt;:0
at System.Web.Handlers.AssemblyResourceLoader.SendEmbeddedResource (System.Web.HttpContext context, System.Web.Handlers.EmbeddedResource&amp; res, System.Reflection.Assembly&amp; assembly) [0x00000] in &lt;filename unknown&gt;:0
at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest (System.Web.HttpContext context) [0x00000] in &lt;filename unknown&gt;:0
at System.Web.HttpApplication+&lt;Pipeline&gt;c__Iterator3.MoveN
Response Headersview source
Cache-Control private, max-age=120
Connection keep-alive
Date Sat, 14 Apr 2012 18:55:25 GMT
Expires Sat, 14 Apr 2012 18:57:25 GMT
Server Apache/2.2.22 (Debian)
Vary Accept-Encoding,User-Agent
Via 1.1 go-mono.com:80 (squid/2.7.STABLE9)
X-Cache MISS from go-mono.com
X-Cache-Lookup MISS from go-mono.com:80
var sl = new System.Collections.Specialized.ListDictionary();
sl.Add (1, true);
using System;
using System.Collections.Generic;
class A
{
public virtual int Foo ()
{
return 4;
}
}