Skip to content

Commit

Permalink
More code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Jan 8, 2024
1 parent d03d485 commit 5b0dd2f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/interop/System/BOOL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ namespace Vezel.Novadrop.Interop.System;
IComparable<BOOL>,
IComparisonOperators<BOOL, BOOL, bool>
{
public static BOOL TRUE { get; } = new(1);
public static BOOL TRUE { get; } = new(value: 1);

public static BOOL FALSE { get; } = new(0);
public static BOOL FALSE { get; } = new(value: 0);

private readonly int _value;

Expand Down
4 changes: 2 additions & 2 deletions src/interop/System/HWND.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ namespace Vezel.Novadrop.Interop.System;
IComparable<HWND>,
IComparisonOperators<HWND, HWND, bool>
{
public static HWND INVALID_HANDLE_VALUE { get; } = new((void*)-1);
public static HWND INVALID_HANDLE_VALUE { get; } = new(value: (void*)-1);

public static HWND NULL { get; } = new(null);
public static HWND NULL { get; } = new(value: null);

private readonly void* _value;

Expand Down
2 changes: 1 addition & 1 deletion src/interop/System/SOCKET.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Vezel.Novadrop.Interop.System;
IComparable<SOCKET>,
IComparisonOperators<SOCKET, SOCKET, bool>
{
public static SOCKET INVALID_SOCKET { get; } = new(~0u);
public static SOCKET INVALID_SOCKET { get; } = new(value: ~0u);

private readonly ulong _value;

Expand Down
2 changes: 1 addition & 1 deletion src/interop/System/WSAEVENT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Vezel.Novadrop.Interop.System;
IComparable<WSAEVENT>,
IComparisonOperators<WSAEVENT, WSAEVENT, bool>
{
public static WSAEVENT WSA_INVALID_EVENT { get; } = new(null);
public static WSAEVENT WSA_INVALID_EVENT { get; } = new(value: null);

private readonly void* _value;

Expand Down

0 comments on commit 5b0dd2f

Please sign in to comment.