Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gendarme/rules/Gendarme.Rules.Smells/Utilities.cs')
-rw-r--r--gendarme/rules/Gendarme.Rules.Smells/Utilities.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/gendarme/rules/Gendarme.Rules.Smells/Utilities.cs b/gendarme/rules/Gendarme.Rules.Smells/Utilities.cs
index 3121f932..556f801b 100644
--- a/gendarme/rules/Gendarme.Rules.Smells/Utilities.cs
+++ b/gendarme/rules/Gendarme.Rules.Smells/Utilities.cs
@@ -30,6 +30,7 @@ using System;
using System.Collections.Generic;
using Gendarme.Framework;
+using Gendarme.Framework.Rocks;
using Mono.Cecil;
@@ -40,7 +41,7 @@ namespace Gendarme.Rules.Smells {
public static ICollection<TypeDefinition> GetInheritedClassesFrom (TypeReference baseType)
{
List<TypeDefinition> inheritedClasses = new List<TypeDefinition> ();
- foreach (TypeDefinition type in baseType.Module.Types) {
+ foreach (TypeDefinition type in baseType.Module.GetAllTypes ()) {
if ((type.BaseType != null) && type.BaseType.Equals (baseType))
inheritedClasses.Add (type);
}