Use IsTypePublic instead of IsTruePublic. Fixed nested class obfuscated wrongly issue.