From 687e986c55707185ef4a83d6bff0e1c8e1e54003 Mon Sep 17 00:00:00 2001 From: Bertrand Lorentz Date: Sat, 3 Nov 2012 17:00:52 +0100 Subject: [PATCH] generator: Add using statements in generated code for generics --- generator/ObjectGen.cs | 1 + generator/OpaqueGen.cs | 1 + generator/StructBase.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/generator/ObjectGen.cs b/generator/ObjectGen.cs index e70bca453..238b4c5ca 100644 --- a/generator/ObjectGen.cs +++ b/generator/ObjectGen.cs @@ -141,6 +141,7 @@ namespace GtkSharp.Generation { sw.WriteLine (); sw.WriteLine ("\tusing System;"); sw.WriteLine ("\tusing System.Collections;"); + sw.WriteLine ("\tusing System.Collections.Generic;"); sw.WriteLine ("\tusing System.Runtime.InteropServices;"); sw.WriteLine (); diff --git a/generator/OpaqueGen.cs b/generator/OpaqueGen.cs index a8a656cf9..eee007652 100644 --- a/generator/OpaqueGen.cs +++ b/generator/OpaqueGen.cs @@ -51,6 +51,7 @@ namespace GtkSharp.Generation { sw.WriteLine (); sw.WriteLine ("\tusing System;"); sw.WriteLine ("\tusing System.Collections;"); + sw.WriteLine ("\tusing System.Collections.Generic;"); sw.WriteLine ("\tusing System.Runtime.InteropServices;"); sw.WriteLine (); diff --git a/generator/StructBase.cs b/generator/StructBase.cs index 21f6eab13..b0ac8bfbc 100644 --- a/generator/StructBase.cs +++ b/generator/StructBase.cs @@ -200,6 +200,7 @@ namespace GtkSharp.Generation { sw.WriteLine (); sw.WriteLine ("\tusing System;"); sw.WriteLine ("\tusing System.Collections;"); + sw.WriteLine ("\tusing System.Collections.Generic;"); sw.WriteLine ("\tusing System.Runtime.InteropServices;"); sw.WriteLine ();