Skip to content

Commit 338896e

Browse files
committed
use C# 10
1 parent 1e4e1d8 commit 338896e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

source/VirtualDesktop/VirtualDesktop.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
<PropertyGroup>
44
<TargetFrameworks>net46;net6.0-windows10.0.19041.0</TargetFrameworks>
55
<Version>0.0.4</Version>
6+
<LangVersion>10.0</LangVersion>
67
<UseWPF>true</UseWPF>
78
<PackageId>LostTech.VirtualDesktop</PackageId>
89
<Authors>grabacr.net, Victor Milovanov</Authors>
910
<Company>Lost Tech LLC, grabacr.net</Company>
1011
<Description>C# wrapper for IVirtualDesktopManager on Windows 10. You need to include the app manifest in your project so as to target Windows 10.</Description>
11-
<Copyright2020 Lost Tech LLC; © 2015 Manato KAMEYA</Copyright>
12+
<Copyright2022 Lost Tech LLC; © 2015 Manato KAMEYA</Copyright>
1213
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1314
<PackageProjectUrl>https://github.com/losttech/VirtualDesktop</PackageProjectUrl>
1415
<RepositoryUrl>https://github.com/losttech/VirtualDesktop.git</RepositoryUrl>

source/VirtualDesktop/VirtualDesktop.static.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ partial class VirtualDesktop
3030
/// Gets a value indicating whether virtual desktop API is present in the system.
3131
/// It might still not be supported. See <see cref="IsSupported"/>.
3232
/// </summary>
33-
public static bool IsPresent => ComObjects.VirtualDesktopManager != null;
33+
public static bool IsPresent => ComObjects.VirtualDesktopManager is not null;
3434

3535
[EditorBrowsable(EditorBrowsableState.Never)]
3636
public static Exception InitializationException { get; }

0 commit comments

Comments
 (0)