Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ public enum Architecture
X64 = 1,
Arm = 2,
Arm64 = 3,
Wasm = 4,
}
public readonly partial struct OSPlatform : System.IEquatable<System.Runtime.InteropServices.OSPlatform>
{
private readonly object _dummy;
private readonly int _dummyPrimitive;
public static System.Runtime.InteropServices.OSPlatform Browser { get { throw null; } }
public static System.Runtime.InteropServices.OSPlatform FreeBSD { get { throw null; } }
public static System.Runtime.InteropServices.OSPlatform Linux { get { throw null; } }
public static System.Runtime.InteropServices.OSPlatform OSX { get { throw null; } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public enum Architecture
X86,
X64,
Arm,
Arm64
Arm64,
Wasm
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ namespace System.Runtime.InteropServices
{
private readonly string _osPlatform;

public static OSPlatform Browser { get; } = new OSPlatform("BROWSER");

public static OSPlatform FreeBSD { get; } = new OSPlatform("FREEBSD");

public static OSPlatform Linux { get; } = new OSPlatform("LINUX");
Expand Down