Mono.Debugger.Backend.Mono.MonoSymbolFile.LookupMonoClass C# (CSharp) Method

LookupMonoClass() protected method

protected LookupMonoClass ( Cecil typeref ) : MonoClassType
typeref Cecil
return Mono.Debugger.Languages.Mono.MonoClassType
        protected MonoClassType LookupMonoClass(Cecil.TypeReference typeref)
        {
            TargetType type = LookupMonoType (typeref);
            if (type == null)
                return null;

            MonoClassType class_type = type as MonoClassType;
            if (class_type != null)
                return class_type;

            if (type.HasClassType)
                return (MonoClassType) type.ClassType;

            throw new InternalError ("UNKNOWN TYPE: {0}", type);
        }