[sensorkit] Add nullability to (generated and manual) bindings (#14881)
Co-authored-by: TJ Lambert <tjlambert@microsoft.com>
This commit is contained in:
Родитель
d25d6bea1c
Коммит
4f1ad9cb18
|
@ -11,7 +11,7 @@ namespace SensorKit {
|
|||
public static SRSensor GetSensorForDeletionRecords (this SRSensor self)
|
||||
{
|
||||
var constant = self.GetConstant ();
|
||||
if (constant == null)
|
||||
if (constant is null)
|
||||
return SRSensor.Invalid;
|
||||
return GetValue (constant._GetSensorForDeletionRecordsFromSensor ());
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче