Boo.Lang.Compiler.TypeSystem.ExternalType.GetClassDepth C# (CSharp) Method

GetClassDepth() static private method

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