better NativeExtension.LoadNativeMethods readability

pull/15969/head
Jan Tattermusch 7 years ago
parent 3511f45964
commit be6f3e393f
  1. 12
      src/csharp/Grpc.Core/Internal/NativeExtension.cs

@ -106,9 +106,15 @@ namespace Grpc.Core.Internal
/// </summary>
private static NativeMethods LoadNativeMethods()
{
return PlatformApis.IsUnity ? LoadNativeMethodsUnity() :
PlatformApis.IsXamarin ? LoadNativeMethodsXamarin() :
new NativeMethods(LoadUnmanagedLibrary());
if (PlatformApis.IsUnity)
{
return LoadNativeMethodsUnity();
}
if (PlatformApis.IsXamarin)
{
return LoadNativeMethodsXamarin();
}
return new NativeMethods(LoadUnmanagedLibrary());
}
/// <summary>

Loading…
Cancel
Save