2 // ModuleBuilder.pns.cs
5 // Marek Safar (marek.safar@gmail.com)
7 // Copyright (C) 2016 Xamarin Inc (http://www.xamarin.com)
9 // Permission is hereby granted, free of charge, to any person obtaining
10 // a copy of this software and associated documentation files (the
11 // "Software"), to deal in the Software without restriction, including
12 // without limitation the rights to use, copy, modify, merge, publish,
13 // distribute, sublicense, and/or sell copies of the Software, and to
14 // permit persons to whom the Software is furnished to do so, subject to
15 // the following conditions:
17 // The above copyright notice and this permission notice shall be
18 // included in all copies or substantial portions of the Software.
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 namespace System
.Reflection
.Emit
33 public abstract class ModuleBuilder
: Module
35 public void CreateGlobalFunctions ()
37 throw new PlatformNotSupportedException ();
40 public EnumBuilder
DefineEnum (string name
, TypeAttributes visibility
, Type underlyingType
)
42 throw new PlatformNotSupportedException ();
45 public MethodBuilder
DefineGlobalMethod (string name
, MethodAttributes attributes
, Type returnType
, Type
[] parameterTypes
)
47 throw new PlatformNotSupportedException ();
50 public MethodBuilder
DefineGlobalMethod (string name
, MethodAttributes attributes
, CallingConventions callingConvention
, Type returnType
, Type
[] parameterTypes
)
52 throw new PlatformNotSupportedException ();
55 public MethodBuilder
DefineGlobalMethod (string name
, MethodAttributes attributes
, CallingConventions callingConvention
, Type returnType
, Type
[] requiredReturnTypeCustomModifiers
, Type
[] optionalReturnTypeCustomModifiers
, Type
[] parameterTypes
, Type
[][] requiredParameterTypeCustomModifiers
, Type
[][] optionalParameterTypeCustomModifiers
)
57 throw new PlatformNotSupportedException ();
60 public FieldBuilder
DefineInitializedData (string name
, byte[] data
, FieldAttributes attributes
)
62 throw new PlatformNotSupportedException ();
65 public TypeBuilder
DefineType (string name
)
67 throw new PlatformNotSupportedException ();
70 public TypeBuilder
DefineType (string name
, TypeAttributes attr
)
72 throw new PlatformNotSupportedException ();
75 public TypeBuilder
DefineType (string name
, TypeAttributes attr
, Type parent
)
77 throw new PlatformNotSupportedException ();
80 public TypeBuilder
DefineType (string name
, TypeAttributes attr
, Type parent
, int typesize
)
82 throw new PlatformNotSupportedException ();
85 public TypeBuilder
DefineType (string name
, TypeAttributes attr
, Type parent
, PackingSize packsize
)
87 throw new PlatformNotSupportedException ();
90 public TypeBuilder
DefineType (string name
, TypeAttributes attr
, Type parent
, Type
[] interfaces
)
92 throw new PlatformNotSupportedException ();
95 public TypeBuilder
DefineType (string name
, TypeAttributes attr
, Type parent
, PackingSize packingSize
, int typesize
)
97 throw new PlatformNotSupportedException ();
100 public FieldBuilder
DefineUninitializedData (string name
, int size
, FieldAttributes attributes
)
102 throw new PlatformNotSupportedException ();
105 public MethodInfo
GetArrayMethod (Type arrayClass
, string methodName
, CallingConventions callingConvention
, Type returnType
, Type
[] parameterTypes
)
107 throw new PlatformNotSupportedException ();
110 public void SetCustomAttribute (CustomAttributeBuilder customBuilder
)
112 throw new PlatformNotSupportedException ();
115 public void SetCustomAttribute (ConstructorInfo con
, byte[] binaryAttribute
)
117 throw new PlatformNotSupportedException ();