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 class ILGenerator
41 throw new PlatformNotSupportedException ();
45 public virtual void BeginCatchBlock (Type exceptionType)
47 throw new PlatformNotSupportedException ();
50 public virtual void BeginExceptFilterBlock ()
52 throw new PlatformNotSupportedException ();
55 public virtual Label BeginExceptionBlock ()
57 throw new PlatformNotSupportedException ();
60 public virtual void BeginFaultBlock ()
62 throw new PlatformNotSupportedException ();
65 public virtual void BeginFinallyBlock ()
67 throw new PlatformNotSupportedException ();
70 public virtual void BeginScope ()
72 throw new PlatformNotSupportedException ();
75 public virtual LocalBuilder DeclareLocal (Type localType)
77 throw new PlatformNotSupportedException ();
80 public virtual LocalBuilder DeclareLocal (Type localType, bool pinned)
82 throw new PlatformNotSupportedException ();
85 public virtual Label DefineLabel ()
87 throw new PlatformNotSupportedException ();
90 public virtual void Emit (OpCode opcode)
92 throw new PlatformNotSupportedException ();
95 public virtual void Emit (OpCode opcode, byte arg)
97 throw new PlatformNotSupportedException ();
100 public virtual void Emit (OpCode opcode, double arg)
102 throw new PlatformNotSupportedException ();
105 public virtual void Emit (OpCode opcode, short arg)
107 throw new PlatformNotSupportedException ();
110 public virtual void Emit (OpCode opcode, int arg)
112 throw new PlatformNotSupportedException ();
115 public virtual void Emit (OpCode opcode, long arg)
117 throw new PlatformNotSupportedException ();
120 public virtual void Emit (OpCode opcode, ConstructorInfo con)
122 throw new PlatformNotSupportedException ();
125 public virtual void Emit (OpCode opcode, Label label)
127 throw new PlatformNotSupportedException ();
130 public virtual void Emit (OpCode opcode, Label[] labels)
132 throw new PlatformNotSupportedException ();
135 public virtual void Emit (OpCode opcode, LocalBuilder local)
137 throw new PlatformNotSupportedException ();
140 public virtual void Emit (OpCode opcode, SignatureHelper signature)
142 throw new PlatformNotSupportedException ();
145 public virtual void Emit (OpCode opcode, FieldInfo field)
147 throw new PlatformNotSupportedException ();
150 public virtual void Emit (OpCode opcode, MethodInfo meth)
152 throw new PlatformNotSupportedException ();
155 [CLSCompliant (false)]
156 public void Emit (OpCode opcode, sbyte arg)
158 throw new PlatformNotSupportedException ();
161 public virtual void Emit (OpCode opcode, float arg)
163 throw new PlatformNotSupportedException ();
166 public virtual void Emit (OpCode opcode, string str)
168 throw new PlatformNotSupportedException ();
171 public virtual void Emit (OpCode opcode, Type cls)
173 throw new PlatformNotSupportedException ();
176 public virtual void EmitCall (OpCode opcode, MethodInfo methodInfo, Type[] optionalParameterTypes)
178 throw new PlatformNotSupportedException ();
181 public virtual void EmitCalli (OpCode opcode, CallingConventions callingConvention, Type returnType, Type[] parameterTypes, Type[] optionalParameterTypes)
183 throw new PlatformNotSupportedException ();
186 public virtual void EmitWriteLine (LocalBuilder localBuilder)
188 throw new PlatformNotSupportedException ();
191 public virtual void EmitWriteLine (FieldInfo fld)
193 throw new PlatformNotSupportedException ();
196 public virtual void EmitWriteLine (string value)
198 throw new PlatformNotSupportedException ();
201 public virtual void EndExceptionBlock ()
203 throw new PlatformNotSupportedException ();
206 public virtual void EndScope ()
208 throw new PlatformNotSupportedException ();
211 public virtual void MarkLabel (Label loc)
213 throw new PlatformNotSupportedException ();
216 public virtual void ThrowException (Type excType)
218 throw new PlatformNotSupportedException ();
221 public virtual void UsingNamespace (string usingNamespace)
223 throw new PlatformNotSupportedException ();