[netcore] Marshal.IsPinnable (#13628)