Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/class
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2014-01-14 17:25:01 +0400
committerMarek Safar <marek.safar@gmail.com>2014-01-14 17:25:46 +0400
commitf74fa4a0ac488135dc725f7e9c48a1dc7f34dab2 (patch)
tree96d33d04ae468da356233f067e8b320d8ae27d87 /mcs/class
parentc5eab2d5dc25433c8ce8ad529b8bdfe2dcf8190c (diff)
[build] Add Microsoft.CSharp to monotouch profile
Diffstat (limited to 'mcs/class')
-rw-r--r--mcs/class/Makefile2
-rw-r--r--mcs/class/Mono.CSharp/Makefile4
-rw-r--r--mcs/class/Mono.CSharp/monotouch.cs1123
-rw-r--r--mcs/class/Mono.CSharp/monotouch_Mono.CSharp.dll.sources13
-rw-r--r--mcs/class/corlib/System.Reflection.Emit/AssemblyBuilderAccess.cs2
-rw-r--r--mcs/class/corlib/System.Reflection.Emit/FlowControl.cs2
-rw-r--r--mcs/class/corlib/System.Reflection.Emit/Label.cs2
-rw-r--r--mcs/class/corlib/System.Reflection.Emit/MethodToken.cs2
-rw-r--r--mcs/class/corlib/System.Reflection.Emit/OpCode.cs6
-rw-r--r--mcs/class/corlib/System.Reflection.Emit/OpCodeNames.cs2
-rw-r--r--mcs/class/corlib/System.Reflection.Emit/OpCodeType.cs2
-rw-r--r--mcs/class/corlib/System.Reflection.Emit/OpCodes.cs2
-rw-r--r--mcs/class/corlib/System.Reflection.Emit/OperandType.cs2
-rw-r--r--mcs/class/corlib/System.Reflection.Emit/PEFileKinds.cs2
-rw-r--r--mcs/class/corlib/System.Reflection.Emit/StackBehaviour.cs2
15 files changed, 1154 insertions, 14 deletions
diff --git a/mcs/class/Makefile b/mcs/class/Makefile
index 03f7904f684..09c8bf60436 100644
--- a/mcs/class/Makefile
+++ b/mcs/class/Makefile
@@ -165,6 +165,8 @@ monotouch_runtime_dirs := \
corlib
monotouch_dirs := \
+ Mono.CSharp \
+ Microsoft.CSharp \
Mono.Dynamic.Interpreter \
System.Core
diff --git a/mcs/class/Mono.CSharp/Makefile b/mcs/class/Mono.CSharp/Makefile
index 2e67f599392..85b86e0f466 100644
--- a/mcs/class/Mono.CSharp/Makefile
+++ b/mcs/class/Mono.CSharp/Makefile
@@ -6,6 +6,10 @@ LIBRARY = Mono.CSharp.dll
LIB_MCS_FLAGS = -r:System.Core.dll -r:System.Xml.dll -r:System.dll
+ifeq (monotouch, $(PROFILE))
+LIB_MCS_FLAGS += -d:IOS_REFLECTION
+endif
+
TEST_MCS_FLAGS = -r:System.Core.dll
include ../../build/library.make
diff --git a/mcs/class/Mono.CSharp/monotouch.cs b/mcs/class/Mono.CSharp/monotouch.cs
new file mode 100644
index 00000000000..fed14757214
--- /dev/null
+++ b/mcs/class/Mono.CSharp/monotouch.cs
@@ -0,0 +1,1123 @@
+//
+// monotouch.cs: iOS System.Reflection.Emit API needed to simplify mcs compilation
+//
+// Authors:
+// Marek Safar <marek.safar@gmail.com>
+//
+// Copyright (C) 2014 Xamarin Inc (http://www.xamarin.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+namespace System.Reflection.Emit
+{
+ public class ILGenerator
+ {
+ public void BeginCatchBlock (Type exceptionType)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public Label BeginExceptionBlock ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void BeginFinallyBlock ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public LocalBuilder DeclareLocal (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public Label DefineLabel ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void Emit (OpCode opcode)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void Emit (OpCode opcode, object args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void EmitCall (OpCode opcode, params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void EndExceptionBlock ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void MarkLabel (Label loc)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public int ILOffset { get; set; }
+ }
+
+ public class TypeBuilder : Type
+ {
+ #region implemented abstract members of MemberInfo
+
+ public override bool IsDefined (Type attributeType, bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object[] GetCustomAttributes (bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object[] GetCustomAttributes (Type attributeType, bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override string Name {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ #endregion
+
+ #region implemented abstract members of Type
+
+ public override Type GetInterface (string name, bool ignoreCase)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override Type[] GetInterfaces ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override Type GetElementType ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override EventInfo GetEvent (string name, BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override EventInfo[] GetEvents (BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override FieldInfo GetField (string name, BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override FieldInfo[] GetFields (BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override MemberInfo[] GetMembers (BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override MethodInfo GetMethodImpl (string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override MethodInfo[] GetMethods (BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override Type GetNestedType (string name, BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override Type[] GetNestedTypes (BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override PropertyInfo[] GetProperties (BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override PropertyInfo GetPropertyImpl (string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override ConstructorInfo GetConstructorImpl (BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override TypeAttributes GetAttributeFlagsImpl ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override bool HasElementTypeImpl ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override bool IsArrayImpl ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override bool IsByRefImpl ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override bool IsCOMObjectImpl ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override bool IsPointerImpl ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override bool IsPrimitiveImpl ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override ConstructorInfo[] GetConstructors (BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object InvokeMember (string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, string[] namedParameters)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override Assembly Assembly {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override string AssemblyQualifiedName {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override Type BaseType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override string FullName {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override Guid GUID {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override Module Module {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override string Namespace {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override Type UnderlyingSystemType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ #endregion
+
+ public void AddInterfaceImplementation (Type interfaceType)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void AddDeclarativeSecurity (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetParent (object arg)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public Type CreateType()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public ConstructorBuilder DefineConstructor (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public MethodBuilder DefineMethod (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public TypeBuilder DefineNestedType (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public PropertyBuilder DefineProperty (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public EventBuilder DefineEvent (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public FieldBuilder DefineField (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public GenericTypeParameterBuilder[] DefineGenericParameters (params string[] names)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public MethodBuilder DefineMethodOverride (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public static ConstructorInfo GetConstructor (Type type, ConstructorInfo constructor)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public static FieldInfo GetField (Type type, FieldInfo field)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public static MethodInfo GetMethod (Type type, MethodInfo method)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetCustomAttribute (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public class MethodBuilder : MethodBase
+ {
+ #region implemented abstract members of MemberInfo
+
+ public override bool IsDefined (Type attributeType, bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object[] GetCustomAttributes (bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object[] GetCustomAttributes (Type attributeType, bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override Type DeclaringType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override MemberTypes MemberType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override string Name {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override Type ReflectedType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ #endregion
+
+ #region implemented abstract members of MethodBase
+
+ public override MethodImplAttributes GetMethodImplementationFlags ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override ParameterInfo[] GetParameters ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object Invoke (object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, System.Globalization.CultureInfo culture)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override RuntimeMethodHandle MethodHandle {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override MethodAttributes Attributes {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ #endregion
+
+ public void AddDeclarativeSecurity (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public ParameterBuilder DefineParameter (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public GenericTypeParameterBuilder[] DefineGenericParameters (params string[] names)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public MethodToken GetToken()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public ILGenerator GetILGenerator ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetCustomAttribute (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetImplementationFlags (MethodImplAttributes attributes)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetParameters (params Type[] parameterTypes)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetReturnType (object arg)
+ {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public class AssemblyBuilder : Assembly
+ {
+ public void AddResourceFile (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void DefineVersionInfoResource (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public ModuleBuilder DefineDynamicModule (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void DefineUnmanagedResource (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void Save (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetEntryPoint (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetCustomAttribute (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public class LocalBuilder : LocalVariableInfo
+ {
+ }
+
+ public class GenericTypeParameterBuilder : Type
+ {
+ #region implemented abstract members of MemberInfo
+
+ public override bool IsDefined (Type attributeType, bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object[] GetCustomAttributes (bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object[] GetCustomAttributes (Type attributeType, bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override string Name {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ #endregion
+
+ #region implemented abstract members of Type
+
+ public override Type GetInterface (string name, bool ignoreCase)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override Type[] GetInterfaces ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override Type GetElementType ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override EventInfo GetEvent (string name, BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override EventInfo[] GetEvents (BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override FieldInfo GetField (string name, BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override FieldInfo[] GetFields (BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override MemberInfo[] GetMembers (BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override MethodInfo GetMethodImpl (string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override MethodInfo[] GetMethods (BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override Type GetNestedType (string name, BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override Type[] GetNestedTypes (BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override PropertyInfo[] GetProperties (BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override PropertyInfo GetPropertyImpl (string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override ConstructorInfo GetConstructorImpl (BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override TypeAttributes GetAttributeFlagsImpl ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override bool HasElementTypeImpl ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override bool IsArrayImpl ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override bool IsByRefImpl ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override bool IsCOMObjectImpl ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override bool IsPointerImpl ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ protected override bool IsPrimitiveImpl ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override ConstructorInfo[] GetConstructors (BindingFlags bindingAttr)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object InvokeMember (string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, System.Globalization.CultureInfo culture, string[] namedParameters)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override Assembly Assembly {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override string AssemblyQualifiedName {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override Type BaseType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override string FullName {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override Guid GUID {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override Module Module {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override string Namespace {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override Type UnderlyingSystemType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ #endregion
+
+ public void SetCustomAttribute (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetGenericParameterAttributes (GenericParameterAttributes genericParameterAttributes)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetInterfaceConstraints (params Type[] interfaceConstraints)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetBaseTypeConstraint (Type baseTypeConstraint)
+ {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public class ConstructorBuilder : MethodBase
+ {
+ #region implemented abstract members of MemberInfo
+
+ public override bool IsDefined (Type attributeType, bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object[] GetCustomAttributes (bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object[] GetCustomAttributes (Type attributeType, bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override Type DeclaringType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override MemberTypes MemberType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override string Name {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override Type ReflectedType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ #endregion
+
+ #region implemented abstract members of MethodBase
+
+ public override MethodImplAttributes GetMethodImplementationFlags ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override ParameterInfo[] GetParameters ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object Invoke (object obj, BindingFlags invokeAttr, Binder binder, object[] parameters, System.Globalization.CultureInfo culture)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override RuntimeMethodHandle MethodHandle {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override MethodAttributes Attributes {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ #endregion
+
+ public void AddDeclarativeSecurity (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public ParameterBuilder DefineParameter (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public MethodToken GetToken()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public ILGenerator GetILGenerator ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetCustomAttribute (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetImplementationFlags (MethodImplAttributes attributes)
+ {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public class ModuleBuilder : Module
+ {
+ public void DefineManifestResource (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public TypeBuilder DefineType (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public MethodToken GetToken()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public MethodInfo GetArrayMethod (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetCustomAttribute (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public class PropertyBuilder : PropertyInfo
+ {
+ #region implemented abstract members of MemberInfo
+
+ public override bool IsDefined (Type attributeType, bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object[] GetCustomAttributes (bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object[] GetCustomAttributes (Type attributeType, bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override Type DeclaringType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override string Name {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override Type ReflectedType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ #endregion
+
+ #region implemented abstract members of PropertyInfo
+
+ public override MethodInfo[] GetAccessors (bool nonPublic)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override MethodInfo GetGetMethod (bool nonPublic)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override ParameterInfo[] GetIndexParameters ()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override MethodInfo GetSetMethod (bool nonPublic)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object GetValue (object obj, BindingFlags invokeAttr, Binder binder, object[] index, System.Globalization.CultureInfo culture)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override void SetValue (object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, System.Globalization.CultureInfo culture)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override PropertyAttributes Attributes {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override bool CanRead {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override bool CanWrite {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override Type PropertyType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ #endregion
+
+ public MethodToken GetToken()
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetGetMethod (object arg)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetSetMethod (object arg)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetCustomAttribute (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public class FieldBuilder : FieldInfo
+ {
+ #region implemented abstract members of MemberInfo
+
+ public override bool IsDefined (Type attributeType, bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object[] GetCustomAttributes (bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override object[] GetCustomAttributes (Type attributeType, bool inherit)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override Type DeclaringType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override string Name {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override Type ReflectedType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ #endregion
+
+ #region implemented abstract members of FieldInfo
+
+ public override object GetValue (object obj)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override void SetValue (object obj, object value, BindingFlags invokeAttr, Binder binder, System.Globalization.CultureInfo culture)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public override FieldAttributes Attributes {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override RuntimeFieldHandle FieldHandle {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public override Type FieldType {
+ get {
+ throw new NotSupportedException ();
+ }
+ }
+
+ #endregion
+
+ public void SetConstant (object arg)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetCustomAttribute (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public class ParameterBuilder : ParameterInfo
+ {
+ public void SetConstant (object arg)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetCustomAttribute (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public class EventBuilder
+ {
+ public void SetAddOnMethod (MethodBuilder mdBuilder)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetRemoveOnMethod (MethodBuilder mdBuilder)
+ {
+ throw new NotSupportedException ();
+ }
+
+ public void SetCustomAttribute (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+ }
+
+ public class CustomAttributeBuilder
+ {
+ public CustomAttributeBuilder (params object[] args)
+ {
+ throw new NotSupportedException ();
+ }
+ }
+} \ No newline at end of file
diff --git a/mcs/class/Mono.CSharp/monotouch_Mono.CSharp.dll.sources b/mcs/class/Mono.CSharp/monotouch_Mono.CSharp.dll.sources
new file mode 100644
index 00000000000..bebb2c0b335
--- /dev/null
+++ b/mcs/class/Mono.CSharp/monotouch_Mono.CSharp.dll.sources
@@ -0,0 +1,13 @@
+#include Mono.CSharp.dll.sources
+../corlib/System.Reflection.Emit/AssemblyBuilderAccess.cs
+../corlib/System.Reflection.Emit/FlowControl.cs
+../corlib/System.Reflection.Emit/Opcode.cs
+../corlib/System.Reflection.Emit/OpcodeNames.cs
+../corlib/System.Reflection.Emit/Opcodes.cs
+../corlib/System.Reflection.Emit/OpcodeType.cs
+../corlib/System.Reflection.Emit/OperandType.cs
+../corlib/System.Reflection.Emit/PEFileKinds.cs
+../corlib/System.Reflection.Emit/Label.cs
+../corlib/System.Reflection.Emit/MethodToken.cs
+../corlib/System.Reflection.Emit/StackBehaviour.cs
+monotouch.cs \ No newline at end of file
diff --git a/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilderAccess.cs b/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilderAccess.cs
index 1aceb94ef07..55cc465e044 100644
--- a/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilderAccess.cs
+++ b/mcs/class/corlib/System.Reflection.Emit/AssemblyBuilderAccess.cs
@@ -28,7 +28,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !FULL_AOT_RUNTIME
+#if !FULL_AOT_RUNTIME || IOS_REFLECTION
using System.Runtime.InteropServices;
namespace System.Reflection.Emit
diff --git a/mcs/class/corlib/System.Reflection.Emit/FlowControl.cs b/mcs/class/corlib/System.Reflection.Emit/FlowControl.cs
index 0a7a464b768..8a852c13942 100644
--- a/mcs/class/corlib/System.Reflection.Emit/FlowControl.cs
+++ b/mcs/class/corlib/System.Reflection.Emit/FlowControl.cs
@@ -25,7 +25,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !FULL_AOT_RUNTIME
+#if !FULL_AOT_RUNTIME || IOS_REFLECTION
using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
diff --git a/mcs/class/corlib/System.Reflection.Emit/Label.cs b/mcs/class/corlib/System.Reflection.Emit/Label.cs
index 94d35f80f51..427b93d98db 100644
--- a/mcs/class/corlib/System.Reflection.Emit/Label.cs
+++ b/mcs/class/corlib/System.Reflection.Emit/Label.cs
@@ -30,7 +30,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !FULL_AOT_RUNTIME
+#if !FULL_AOT_RUNTIME || IOS_REFLECTION
using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
diff --git a/mcs/class/corlib/System.Reflection.Emit/MethodToken.cs b/mcs/class/corlib/System.Reflection.Emit/MethodToken.cs
index 2ccff2a919b..119a8714411 100644
--- a/mcs/class/corlib/System.Reflection.Emit/MethodToken.cs
+++ b/mcs/class/corlib/System.Reflection.Emit/MethodToken.cs
@@ -25,7 +25,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !FULL_AOT_RUNTIME
+#if !FULL_AOT_RUNTIME || IOS_REFLECTION
using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
diff --git a/mcs/class/corlib/System.Reflection.Emit/OpCode.cs b/mcs/class/corlib/System.Reflection.Emit/OpCode.cs
index 81edbd5b5ad..e6cdf10b737 100644
--- a/mcs/class/corlib/System.Reflection.Emit/OpCode.cs
+++ b/mcs/class/corlib/System.Reflection.Emit/OpCode.cs
@@ -26,10 +26,8 @@
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
-#if !FULL_AOT_RUNTIME
-using System;
-using System.Reflection;
-using System.Reflection.Emit;
+#if !FULL_AOT_RUNTIME || IOS_REFLECTION
+
using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
diff --git a/mcs/class/corlib/System.Reflection.Emit/OpCodeNames.cs b/mcs/class/corlib/System.Reflection.Emit/OpCodeNames.cs
index bcac4a31c1d..1163869317e 100644
--- a/mcs/class/corlib/System.Reflection.Emit/OpCodeNames.cs
+++ b/mcs/class/corlib/System.Reflection.Emit/OpCodeNames.cs
@@ -1,4 +1,4 @@
-#if !FULL_AOT_RUNTIME
+#if !FULL_AOT_RUNTIME || IOS_REFLECTION
namespace System.Reflection.Emit {
static class OpCodeNames {
internal static readonly string [] names = {
diff --git a/mcs/class/corlib/System.Reflection.Emit/OpCodeType.cs b/mcs/class/corlib/System.Reflection.Emit/OpCodeType.cs
index 681ea6e4ff5..df0cbf0d50a 100644
--- a/mcs/class/corlib/System.Reflection.Emit/OpCodeType.cs
+++ b/mcs/class/corlib/System.Reflection.Emit/OpCodeType.cs
@@ -25,7 +25,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !FULL_AOT_RUNTIME
+#if !FULL_AOT_RUNTIME || IOS_REFLECTION
using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
diff --git a/mcs/class/corlib/System.Reflection.Emit/OpCodes.cs b/mcs/class/corlib/System.Reflection.Emit/OpCodes.cs
index 840ee183ffc..6e891d538d4 100644
--- a/mcs/class/corlib/System.Reflection.Emit/OpCodes.cs
+++ b/mcs/class/corlib/System.Reflection.Emit/OpCodes.cs
@@ -1,4 +1,4 @@
-#if !FULL_AOT_RUNTIME
+#if !FULL_AOT_RUNTIME || IOS_REFLECTION
using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
diff --git a/mcs/class/corlib/System.Reflection.Emit/OperandType.cs b/mcs/class/corlib/System.Reflection.Emit/OperandType.cs
index c8f785d0d3d..2985b1b57ee 100644
--- a/mcs/class/corlib/System.Reflection.Emit/OperandType.cs
+++ b/mcs/class/corlib/System.Reflection.Emit/OperandType.cs
@@ -25,7 +25,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !FULL_AOT_RUNTIME
+#if !FULL_AOT_RUNTIME || IOS_REFLECTION
using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
diff --git a/mcs/class/corlib/System.Reflection.Emit/PEFileKinds.cs b/mcs/class/corlib/System.Reflection.Emit/PEFileKinds.cs
index 4cf610fab35..adb9998e66e 100644
--- a/mcs/class/corlib/System.Reflection.Emit/PEFileKinds.cs
+++ b/mcs/class/corlib/System.Reflection.Emit/PEFileKinds.cs
@@ -22,7 +22,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !FULL_AOT_RUNTIME
+#if !FULL_AOT_RUNTIME || IOS_REFLECTION
using System.Runtime.InteropServices;
namespace System.Reflection.Emit {
diff --git a/mcs/class/corlib/System.Reflection.Emit/StackBehaviour.cs b/mcs/class/corlib/System.Reflection.Emit/StackBehaviour.cs
index 689197c919c..16a27149592 100644
--- a/mcs/class/corlib/System.Reflection.Emit/StackBehaviour.cs
+++ b/mcs/class/corlib/System.Reflection.Emit/StackBehaviour.cs
@@ -25,7 +25,7 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if !FULL_AOT_RUNTIME
+#if !FULL_AOT_RUNTIME || IOS_REFLECTION
using System.Runtime.InteropServices;
namespace System.Reflection.Emit {