The .?
operator ignores the overridden ==
operator of UnityEngine.Object.
It is basically a x is null
check under the hood.
assuming obj is a UnityEngine.Object
UnityEngine obj;
// declare and set null
obj = null;
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net5.0</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="MassTransit.Extensions.DependencyInjection" Version="7.1.8" /> | |
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.1" /> |
The .?
operator ignores the overridden ==
operator of UnityEngine.Object.
It is basically a x is null
check under the hood.
assuming obj is a UnityEngine.Object
UnityEngine obj;
// declare and set null
obj = null;
git ls-files -v | Where-Object { $_ -cmatch '^h' } | ForEach-Object { git update-index --no-assume-unchanged "$($_.replace('h ', ''))" } |