Skip to content

Commit

Permalink
[DeviceDiscoveryExtension] Added more suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Israel Soto committed Aug 24, 2022
1 parent 777698c commit ce08b97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DeviceDiscoveryExtension/DDDevice.cs
Expand Up @@ -17,8 +17,8 @@
namespace DeviceDiscoveryExtension {
public partial class DDDevice {

NWEndpoint networkEndpoint = null;
public NWEndpoint NetworkEndpoint {
NWEndpoint? networkEndpoint = null;
public NWEndpoint? NetworkEndpoint {
get => networkEndpoint;
set {
networkEndpoint?.Dispose ();
Expand Down
1 change: 1 addition & 0 deletions src/devicediscoveryextension.cs
Expand Up @@ -83,6 +83,7 @@ interface DDDevice

[NoMac, iOS (16,0), NoMacCatalyst, NoWatch, NoTV]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface DDDeviceEvent
{
[Export ("initWithEventType:device:")]
Expand Down

0 comments on commit ce08b97

Please sign in to comment.