summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Build.Tasks/ILProcessorExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Build.Tasks/ILProcessorExtensions.cs')
-rw-r--r--Xamarin.Forms.Build.Tasks/ILProcessorExtensions.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Xamarin.Forms.Build.Tasks/ILProcessorExtensions.cs b/Xamarin.Forms.Build.Tasks/ILProcessorExtensions.cs
new file mode 100644
index 00000000..6bcedc78
--- /dev/null
+++ b/Xamarin.Forms.Build.Tasks/ILProcessorExtensions.cs
@@ -0,0 +1,14 @@
+using System.Collections.Generic;
+using Mono.Cecil.Cil;
+
+namespace Xamarin.Forms.Build.Tasks
+{
+ static class ILProcessorExtensions
+ {
+ public static void Append(this ILProcessor processor, IEnumerable<Instruction> instructions)
+ {
+ foreach (var instruction in instructions)
+ processor.Append(instruction);
+ }
+ }
+} \ No newline at end of file