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 TypeBuilder : TypeInfo
35 public const int UnspecifiedTypeSize = 0;
37 public PackingSize PackingSize {
39 throw new PlatformNotSupportedException ();
45 throw new PlatformNotSupportedException ();
49 public override Assembly Assembly {
51 throw new PlatformNotSupportedException ();
55 public override string AssemblyQualifiedName {
57 throw new PlatformNotSupportedException ();
61 public override Type BaseType {
63 throw new PlatformNotSupportedException ();
67 public override string FullName {
69 throw new PlatformNotSupportedException ();
73 public override Guid GUID {
75 throw new PlatformNotSupportedException ();
79 public override Module Module {
81 throw new PlatformNotSupportedException ();
85 public override string Name {
87 throw new PlatformNotSupportedException ();
91 public override string Namespace {
93 throw new PlatformNotSupportedException ();
97 public void AddInterfaceImplementation (Type interfaceType)
99 throw new PlatformNotSupportedException ();
102 public TypeInfo CreateTypeInfo ()
104 throw new PlatformNotSupportedException ();
107 public ConstructorBuilder DefineConstructor (MethodAttributes attributes, CallingConventions callingConvention, Type[] parameterTypes)
109 throw new PlatformNotSupportedException ();
112 public ConstructorBuilder DefineConstructor (MethodAttributes attributes, CallingConventions callingConvention, Type[] parameterTypes, Type[][] requiredCustomModifiers, Type[][] optionalCustomModifiers)
114 throw new PlatformNotSupportedException ();
117 public ConstructorBuilder DefineDefaultConstructor (MethodAttributes attributes)
119 throw new PlatformNotSupportedException ();
122 public EventBuilder DefineEvent (string name, EventAttributes attributes, Type eventtype)
124 throw new PlatformNotSupportedException ();
127 public FieldBuilder DefineField (string fieldName, Type type, FieldAttributes attributes)
129 throw new PlatformNotSupportedException ();
132 public FieldBuilder DefineField (string fieldName, Type type, Type[] requiredCustomModifiers, Type[] optionalCustomModifiers, FieldAttributes attributes)
134 throw new PlatformNotSupportedException ();
137 public GenericTypeParameterBuilder[] DefineGenericParameters (string[] names)
139 throw new PlatformNotSupportedException ();
142 public FieldBuilder DefineInitializedData (string name, byte[] data, FieldAttributes attributes)
144 throw new PlatformNotSupportedException ();
147 public MethodBuilder DefineMethod (string name, MethodAttributes attributes)
149 throw new PlatformNotSupportedException ();
152 public MethodBuilder DefineMethod (string name, MethodAttributes attributes, CallingConventions callingConvention)
154 throw new PlatformNotSupportedException ();
157 public MethodBuilder DefineMethod (string name, MethodAttributes attributes, Type returnType, Type[] parameterTypes)
159 throw new PlatformNotSupportedException ();
162 public MethodBuilder DefineMethod (string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes)
164 throw new PlatformNotSupportedException ();
167 public MethodBuilder DefineMethod (string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers, Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
169 throw new PlatformNotSupportedException ();
172 public void DefineMethodOverride (MethodInfo methodInfoBody, MethodInfo methodInfoDeclaration)
174 throw new PlatformNotSupportedException ();
177 public TypeBuilder DefineNestedType (string name)
179 throw new PlatformNotSupportedException ();
182 public TypeBuilder DefineNestedType (string name, TypeAttributes attr)
184 throw new PlatformNotSupportedException ();
187 public TypeBuilder DefineNestedType (string name, TypeAttributes attr, Type parent)
189 throw new PlatformNotSupportedException ();
192 public TypeBuilder DefineNestedType (string name, TypeAttributes attr, Type parent, int typeSize)
194 throw new PlatformNotSupportedException ();
197 public TypeBuilder DefineNestedType (string name, TypeAttributes attr, Type parent, PackingSize packSize)
199 throw new PlatformNotSupportedException ();
202 public TypeBuilder DefineNestedType (string name, TypeAttributes attr, Type parent, Type[] interfaces)
204 throw new PlatformNotSupportedException ();
207 public TypeBuilder DefineNestedType (string name, TypeAttributes attr, Type parent, PackingSize packSize, int typeSize)
209 throw new PlatformNotSupportedException ();
212 public PropertyBuilder DefineProperty (string name, PropertyAttributes attributes, Type returnType, Type[] parameterTypes)
214 throw new PlatformNotSupportedException ();
217 public PropertyBuilder DefineProperty (string name, PropertyAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes)
219 throw new PlatformNotSupportedException ();
222 public PropertyBuilder DefineProperty (string name, PropertyAttributes attributes, Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers, Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
224 throw new PlatformNotSupportedException ();
227 public PropertyBuilder DefineProperty (string name, PropertyAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] returnTypeRequiredCustomModifiers, Type[] returnTypeOptionalCustomModifiers, Type[] parameterTypes, Type[][] parameterTypeRequiredCustomModifiers, Type[][] parameterTypeOptionalCustomModifiers)
229 throw new PlatformNotSupportedException ();
232 public ConstructorBuilder DefineTypeInitializer ()
234 throw new PlatformNotSupportedException ();
237 public FieldBuilder DefineUninitializedData (string name, int size, FieldAttributes attributes)
239 throw new PlatformNotSupportedException ();
242 public static ConstructorInfo GetConstructor (Type type, ConstructorInfo constructor)
244 throw new PlatformNotSupportedException ();
247 public static FieldInfo GetField (Type type, FieldInfo field)
249 throw new PlatformNotSupportedException ();
252 public static MethodInfo GetMethod (Type type, MethodInfo method)
254 throw new PlatformNotSupportedException ();
257 public bool IsCreated ()
259 throw new PlatformNotSupportedException ();
262 public void SetCustomAttribute (CustomAttributeBuilder customBuilder)
264 throw new PlatformNotSupportedException ();
267 public void SetCustomAttribute (ConstructorInfo con, byte[] binaryAttribute)
269 throw new PlatformNotSupportedException ();
272 public void SetParent (Type parent)
274 throw new PlatformNotSupportedException ();
277 public override Type GetElementType ()
279 throw new PlatformNotSupportedException ();