Interpreter.GetPublicRuntimeType C# (CSharp) Method

GetPublicRuntimeType() private method

private GetPublicRuntimeType ( object symVal ) : Type
symVal object
return Type
    Type GetPublicRuntimeType(object symVal) {                
        Type symType = null;
        if (symVal != null) {
            symType = symVal.GetType();
            while (! symType.IsPublic)
                symType = symType.BaseType;            
        }
        return symType;        
    }