mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
Convert some cases of the form:
if (value is T) ((T)value).DoSomething();
Etc. Into:
T tValue = value as T;
if (tValue != null) tValue.DoSomething();
Slightly smaller IL output, and removes double-cast in the case that uses it.
Commit migrated from https://github.com/dotnet/corefx/commit/6026ec5993a98c5a03c04a48a68f1d6ed346f8bc