Boo.Lang.Compiler.TypeSystem.Reflection.ExternalType.GetClassDepth C# (CSharp) Méthode

GetClassDepth() static private méthode

static private GetClassDepth ( Type type ) : int
type System.Type
Résultat int
        static int GetClassDepth(Type type)
        {
            int depth = 0;
            Type objectType = Types.Object;
            while (type != null && type != objectType)
            {
                type = type.BaseType;
                ++depth;
            }
            return depth;
        }