Skip to content

Commit

Permalink
[ObjCRuntime] NativeHandle.Zero shouldn't be writeable, so disallow t…
Browse files Browse the repository at this point in the history
…hat in the future. (#18694)
  • Loading branch information
rolfbjarne committed Aug 11, 2023
1 parent 7b1e404 commit ce402ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ObjCRuntime/NativeHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ public IntPtr Handle {
get { return handle; }
}

#if XAMCORE_5_0
public readonly static NativeHandle Zero = default (NativeHandle);
#else
public static NativeHandle Zero = default (NativeHandle);
#endif

public NativeHandle (IntPtr handle)
{
Expand Down

6 comments on commit ce402ba

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.