Skip to content

Instantly share code, notes, and snippets.

public TypeAttributes GetAttributes()
{
var tinfo = typeof(LibraryClass).GetTypeInfo();
return tinfo.Attributes;
}
public static void ComplexAST()
{
var a = Expression.Parameter(typeof(long), "a");
var b = Expression.Parameter(typeof(long), "b");
var test = Expression.Variable(typeof(long), "test");
var i = Expression.Variable(typeof(long), "i");
var start = Expression.Label();
var end = Expression.Label();
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/IncludeNewFilesDialog.cs b/main/src/core/
index 5d61efa..7ad6185 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/IncludeNewFilesDialog.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/IncludeNewFilesDialog.cs
@@ -124,6 +124,9 @@ namespace MonoDevelop.Ide.Projects
void TraverseSubtree (TreeIter iter, Action<TreeIter> action)
{
+ if (store.IterNChildren () == 0)
+ return;
void
__do_user_fault(struct task_struct *tsk, unsigned long addr,
unsigned int fsr, unsigned int sig, int code,
struct pt_regs *regs)
{
struct siginfo si;
struct task_struct *g, *p, *selected = NULL;
#ifdef CONFIG_DEBUG_USER
if (user_debug & UDBG_SEGV) {
make[2]: Entering directory `/work/catron/mondroid/OpenGLES'
MCS OpenTK.xml
* Assertion at ../../../../mono/metadata/object.c:1778, condition `class' not met
Native stacktrace:
./../bin/mono-Linux() [0x811c0d4]
./../bin/mono-Linux() [0x8185b13]
[0xffffe410]
------ Build started: Project: MonoAndroidApplication3, Configuration: Debug Any CPU ------
Build started 3/21/2011 4:31:14 PM.
Environment at start of build:
MSBuildExtensionsPath32 = C:\Program Files (x86)\MSBuild
MSBuildExtensionsPath64 = C:\Program Files\MSBuild
MSBuildExtensionsPath = C:\Program Files (x86)\MSBuild
LOCALAPPDATA = C:\Users\martin\AppData\Local
ALLUSERSPROFILE = C:\ProgramData
APPDATA = C:\Users\martin\AppData\Roaming
CommonProgramFiles = C:\Program Files (x86)\Common Files
------ Build started: Project: MonoAndroidApplication2, Configuration: Debug Any CPU ------
error CS1703: An assembly with the same identity 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' has already been imported. Try removing one of the duplicate references.
Compile complete -- 1 errors, 0 warnings
Build started 3/21/2011 4:12:47 PM.
Environment at start of build:
MSBuildExtensionsPath32 = C:\Program Files (x86)\MSBuild
MSBuildExtensionsPath64 = C:\Program Files\MSBuild
MSBuildExtensionsPath = C:\Program Files (x86)\MSBuild
LOCALAPPDATA = C:\Users\martin\AppData\Local
.assembly extern mscorlib
{
.ver 2:0:5:0
.publickeytoken = (7C EC 85 D7 BE A7 79 8E ) // |.....y.
}
.assembly extern System.Core
{
.ver 2:0:5:0
.publickeytoken = (7C EC 85 D7 BE A7 79 8E ) // |.....y.
}
Error 1 An assembly with the same identity 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' has already been imported. Try removing one of the duplicate references. c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.2\mscorlib.dll MonoAndroidApplication2
Warning 2 Could not resolve this reference. Could not locate the assembly "Mono.Android". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets 1360 9 MonoAndroidApplication2
Warning 3 No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily. C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets 1360 9 MonoAndroidA
internal MDC.ThreadInfo GetThread (Thread thread)
{
var procs = GetProcesses ();
var threads = OnGetThreads (procs [0].Id);
foreach (var t in threads) {
if (t.Id == thread.ID)
return t;
}