using System.Security.Policy;
using System.Runtime.Serialization;
using System.Globalization;
+using System.Runtime.CompilerServices;
namespace System.Reflection.Emit {
public sealed class AssemblyBuilder : Assembly {
}
public void AddResourceFile( string name, string fileName, ResourceAttributes attribute) {
}
+ [MethodImplAttribute(MethodImplOptions.InternalCall)]
+ private static extern ModuleBuilder defineModule (AssemblyBuilder ab, string name, string filename);
+
public ModuleBuilder DefineDynamicModule( string name) {
return null;
}
return null;
}
public ModuleBuilder DefineDynamicModule( string name, string fileName) {
- return null;
+ return defineModule (this, name, fileName);
}
public ModuleBuilder DefineDynamicModule( string name, string fileName, bool emitSymbolInfo) {
return null;
public override string ToString() {
return "AssemblyBuilder";
}
-
-
+ public void Save( string assemblyFileName) {
+ }
+ public void SetEntryPoint( MethodInfo entryMethod) {
+
+ }
}
}
using System;
using System.Reflection;
+using System.Runtime.CompilerServices;
namespace System.Reflection.Emit {
public class ModuleBuilder : Module {
public override string FullyQualifiedName {get { return "FIXME: bah";}}
-
+ [MethodImplAttribute(MethodImplOptions.InternalCall)]
+ private static extern TypeBuilder defineType (ModuleBuilder mb, string name, TypeAttributes attr);
+ public TypeBuilder DefineType( string name, TypeAttributes attr) {
+ return defineType (this, name, attr);
+ }
+
+
}
}
using System;
using System.Reflection;
using System.Reflection.Emit;
+using System.Runtime.CompilerServices;
namespace System.Reflection.Emit {
public sealed class TypeBuilder : Type {
return null;
}
+ public MethodBuilder DefineMethod( string name, MethodAttributes attributes, Type returnType, Type[] parameterTypes) {
+ return DefineMethod (name, attributes, CallingConventions.Standard, returnType, parameterTypes);
+ }
+
+ [MethodImplAttribute(MethodImplOptions.InternalCall)]
+ private static extern MethodBuilder defineMethod (TypeBuilder typeb, string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes);
+
+ public MethodBuilder DefineMethod( string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes) {
+ return defineMethod (this, name, attributes, callingConvention, returnType, parameterTypes);
+ }
+
+ public Type CreateType() {
+ return null;
+ }
}
}
--- /dev/null
+AssemblyBuilder.cs
+AssemblyBuilderAccess.cs
+ConstructorBuilder.cs
+EventToken.cs
+FieldToken.cs
+FlowControl.cs
+ILGenerator.cs
+Label.cs
+MethodToken.cs
+ModuleBuilder.cs
+OpCode.cs
+OpCodes.cs
+OpCodeType.cs
+OperandType.cs
+PackingSize.cs
+ParameterToken.cs
+PEFileKinds.cs
+PropertyToken.cs
+SignatureToken.cs
+StackBehaviour.cs
+StringToken.cs
+TypeBuilder.cs
+TypeToken.cs
public static AppDomain CurrentDomain {
get { return getCurDomain ();}
}
+ [MethodImplAttribute(MethodImplOptions.InternalCall)]
+ private static extern AssemblyBuilder defineAssembly (AppDomain domain, AssemblyName name, AssemblyBuilderAccess access);
public AssemblyBuilder DefineDynamicAssembly( AssemblyName name, AssemblyBuilderAccess access) {
- return null;
+ return defineAssembly (this, name, access);
}
--- /dev/null
+//
+// System.RuntimeFieldHandle.cs
+//
+// Author:
+// Miguel de Icaza (miguel@ximian.com)
+//
+// (C) Ximian, Inc. http://www.ximian.com
+//
+
+using System.Runtime.Serialization;
+
+namespace System {
+
+ // FIXME: Implement me!
+ public struct RuntimeFieldHandle : ISerializable {
+ IntPtr value;
+
+ public IntPtr Value {
+ get {
+ return (IntPtr) value;
+ }
+ }
+
+ // This is from ISerializable
+ public void GetObjectData (SerializationInfo info, StreamingContext context)
+ {
+ // TODO: IMPLEMENT ME.
+ }
+
+ }
+}
--- /dev/null
+//
+// System.RuntimeMethodHandle.cs
+//
+// Author:
+// Miguel de Icaza (miguel@ximian.com)
+//
+// (C) Ximian, Inc. http://www.ximian.com
+//
+
+using System.Runtime.Serialization;
+
+namespace System {
+
+ // FIXME: Implement me!
+ public struct RuntimeMethodHandle : ISerializable {
+ IntPtr value;
+
+ public IntPtr Value {
+ get {
+ return (IntPtr) value;
+ }
+ }
+
+ // This is from ISerializable
+ public void GetObjectData (SerializationInfo info, StreamingContext context)
+ {
+ // TODO: IMPLEMENT ME.
+ }
+
+ }
+}
//
using System.Reflection;
+using System.Runtime.CompilerServices;
namespace System {
}
- public Type GetTypeFromHandle (RuntimeTypeHandle handle) {
+ //[MethodImplAttribute(MethodImplOptions.InternalCall)]
+ public static Type GetTypeFromHandle (RuntimeTypeHandle handle) {
// FIXME: implement me