{"action":"created","issue":{"url":"https://api.github.com/repos/0xd4d/dnlib/issues/92","repository_url":"https://api.github.com/repos/0xd4d/dnlib","labels_url":"https://api.github.com/repos/0xd4d/dnlib/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/0xd4d/dnlib/issues/92/comments","events_url":"https://api.github.com/repos/0xd4d/dnlib/issues/92/events","html_url":"https://github.com/0xd4d/dnlib/issues/92","id":197993739,"number":92,"title":"decrease unnecessary exceptions","user":{"login":"CreateAndInject","id":2529999,"avatar_url":"https://avatars.githubusercontent.com/u/2529999?v=3","gravatar_id":"","url":"https://api.github.com/users/CreateAndInject","html_url":"https://github.com/CreateAndInject","followers_url":"https://api.github.com/users/CreateAndInject/followers","following_url":"https://api.github.com/users/CreateAndInject/following{/other_user}","gists_url":"https://api.github.com/users/CreateAndInject/gists{/gist_id}","starred_url":"https://api.github.com/users/CreateAndInject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CreateAndInject/subscriptions","organizations_url":"https://api.github.com/users/CreateAndInject/orgs","repos_url":"https://api.github.com/users/CreateAndInject/repos","events_url":"https://api.github.com/users/CreateAndInject/events{/privacy}","received_events_url":"https://api.github.com/users/CreateAndInject/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-29T11:32:50Z","updated_at":"2016-12-30T05:27:03Z","closed_at":null,"body":"such as: AssemblyResolver.cs\r\n```C#\r\n\t\tIEnumerable<string> GetDirs(string baseDir) {\r\n\t\t\tvar dirs = new List<string>();\r\n\t\t\ttry {\r\n\t\t\t\tforeach (var di in new DirectoryInfo(baseDir).GetDirectories())\r\n\t\t\t\t\tdirs.Add(di.FullName);\r\n\t\t\t}\r\n\t\t\tcatch {\r\n\t\t\t}\r\n\t\t\treturn dirs;\r\n\t\t}\r\n```\r\n**if(Directory.Exists(baseDir))....**"},"comment":{"url":"https://api.github.com/repos/0xd4d/dnlib/issues/comments/269734061","html_url":"https://github.com/0xd4d/dnlib/issues/92#issuecomment-269734061","issue_url":"https://api.github.com/repos/0xd4d/dnlib/issues/92","id":269734061,"user":{"login":"CreateAndInject","id":2529999,"avatar_url":"https://avatars.githubusercontent.com/u/2529999?v=3","gravatar_id":"","url":"https://api.github.com/users/CreateAndInject","html_url":"https://github.com/CreateAndInject","followers_url":"https://api.github.com/users/CreateAndInject/followers","following_url":"https://api.github.com/users/CreateAndInject/following{/other_user}","gists_url":"https://api.github.com/users/CreateAndInject/gists{/gist_id}","starred_url":"https://api.github.com/users/CreateAndInject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CreateAndInject/subscriptions","organizations_url":"https://api.github.com/users/CreateAndInject/orgs","repos_url":"https://api.github.com/users/CreateAndInject/repos","events_url":"https://api.github.com/users/CreateAndInject/events{/privacy}","received_events_url":"https://api.github.com/users/CreateAndInject/received_events","type":"User","site_admin":false},"created_at":"2016-12-30T05:27:03Z","updated_at":"2016-12-30T05:27:03Z","body":"I don't notice.\r\n\r\nmaybe here:\r\n```\r\nstatic void AddSilverlightDirs(IList<string> paths, string basePath) {\r\n\t\t\ttry {\r\n\t\t\t\tvar di = new DirectoryInfo(basePath);\r\n\t\t\t\tforeach (var dir in di.GetDirectories()) {\r\n\t\t\t\t\tif (Regex.IsMatch(dir.Name, @\"^\\d+(?:\\.\\d+){3}$\"))\r\n\t\t\t\t\t\tAddIfExists(paths, basePath, dir.Name);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch {\r\n\t\t\t}\r\n\t\t}\r\n```"}}
{"actor":{"display_login":"CreateAndInject"}}