GeofenceState FromNative(Windows.Devices.Geolocation.Geofencing.GeofenceState state) { switch (state) { case Windows.Devices.Geolocation.Geofencing.GeofenceState.Entered: return(GeofenceState.Entered); case Windows.Devices.Geolocation.Geofencing.GeofenceState.Exited: return(GeofenceState.Exited); default: return(GeofenceState.Unknown); } }
public static GeofenceState FromNative(this Native state) => state switch {