{"action":"created","issue":{"url":"https://api.github.com/repos/0xd4d/dnlib/issues/58","repository_url":"https://api.github.com/repos/0xd4d/dnlib","labels_url":"https://api.github.com/repos/0xd4d/dnlib/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/0xd4d/dnlib/issues/58/comments","events_url":"https://api.github.com/repos/0xd4d/dnlib/issues/58/events","html_url":"https://github.com/0xd4d/dnlib/issues/58","id":135720349,"number":58,"title":"TypeAttributes.NestedPrivate and Public","user":{"login":"wangzq","id":271418,"avatar_url":"https://avatars.githubusercontent.com/u/271418?v=3","gravatar_id":"","url":"https://api.github.com/users/wangzq","html_url":"https://github.com/wangzq","followers_url":"https://api.github.com/users/wangzq/followers","following_url":"https://api.github.com/users/wangzq/following{/other_user}","gists_url":"https://api.github.com/users/wangzq/gists{/gist_id}","starred_url":"https://api.github.com/users/wangzq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangzq/subscriptions","organizations_url":"https://api.github.com/users/wangzq/orgs","repos_url":"https://api.github.com/users/wangzq/repos","events_url":"https://api.github.com/users/wangzq/events{/privacy}","received_events_url":"https://api.github.com/users/wangzq/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-23T12:10:13Z","updated_at":"2016-02-23T17:18:31Z","closed_at":"2016-02-23T17:18:31Z","body":"The enum is defined as flags so I assumed I can use `typeDef.HasFlag(TypeAttributes.Public)` to find public types, but since TypeAttributes.NestedPrivate is 3 and TypeAttributes.Public is 1, a private nested type seems return incorrect result here. "},"comment":{"url":"https://api.github.com/repos/0xd4d/dnlib/issues/comments/187797815","html_url":"https://github.com/0xd4d/dnlib/issues/58#issuecomment-187797815","issue_url":"https://api.github.com/repos/0xd4d/dnlib/issues/58","id":187797815,"user":{"login":"0xd4d","id":1060731,"avatar_url":"https://avatars.githubusercontent.com/u/1060731?v=3","gravatar_id":"","url":"https://api.github.com/users/0xd4d","html_url":"https://github.com/0xd4d","followers_url":"https://api.github.com/users/0xd4d/followers","following_url":"https://api.github.com/users/0xd4d/following{/other_user}","gists_url":"https://api.github.com/users/0xd4d/gists{/gist_id}","starred_url":"https://api.github.com/users/0xd4d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xd4d/subscriptions","organizations_url":"https://api.github.com/users/0xd4d/orgs","repos_url":"https://api.github.com/users/0xd4d/repos","events_url":"https://api.github.com/users/0xd4d/events{/privacy}","received_events_url":"https://api.github.com/users/0xd4d/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T17:18:31Z","updated_at":"2016-02-23T17:18:31Z","body":"The low 3 bits is the visibility. https://github.com/0xd4d/dnlib/blob/master/src/DotNet/TypeAttributes.cs#L11\r\n\r\nUse typeDef.[Visibility](https://github.com/0xd4d/dnlib/blob/master/src/DotNet/TypeDef.cs#L780) to get the visibility bits or just use `typeDef.[IsPublic](https://github.com/0xd4d/dnlib/blob/master/src/DotNet/TypeDef.cs#L795)."}}