Update IntrospectionExtensions.cs (dotnet/coreclr#8029)
authorGreg G <6A@users.noreply.github.com>
Thu, 10 Nov 2016 15:03:24 +0000 (16:03 +0100)
committerJan Kotas <jkotas@microsoft.com>
Thu, 10 Nov 2016 15:03:24 +0000 (07:03 -0800)
commit03dce0bb552f30123eeb7f480b92e9fd66f98967
treeac73890a208f64fb70508c5997eb9135b35db52d
parent2d210c2d5df2a4ed183ef4e01ba1596c38274f9d
Update IntrospectionExtensions.cs (dotnet/coreclr#8029)

1. A few tweaks were made to follow the [Coding Style](https://github.com/dotnet/corefx/blob/master/Documentation/coding-guidelines/coding-style.md).
2. A `null` check was done after doing a simple cast (`(IReflectableType)type`), but `rcType` cannot be `null` (it could only be `null` if a [`as`](https://msdn.microsoft.com/en-us/library/cc488006.aspx) cast was done).

Commit migrated from https://github.com/dotnet/coreclr/commit/55a89556b53feeb6fcaa15ae48305994e690f2e0
src/coreclr/src/mscorlib/src/System/Reflection/IntrospectionExtensions.cs