[bcl] Reflect cecil breaking changes
[mono.git] / mcs / tools / tuner / Mono.Tuner / RemoveSerialization.cs
index 1266c9d31a207864ecebed3d53ec17fff4b38b00..d38aef196c048226f14b6722fc11bc76d1ba886d 100644 (file)
@@ -68,7 +68,7 @@ namespace Mono.Tuner {
                static void RemoveInterface (TypeDefinition type, string name)
                {
                        for (int i = 0; i < type.Interfaces.Count; i++) {
-                               TypeReference iface = type.Interfaces [i];
+                               TypeReference iface = type.Interfaces [i].InterfaceType;
                                if (iface.FullName == name) {
                                        type.Interfaces.RemoveAt (i);
                                        return;