File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ protected unsafe PnPDevice(string instanceId, DeviceLocationFlags flags)
109109 /// </summary>
110110 /// <remarks>
111111 /// This method removes and re-enumerates (adds) the device note, which might cause unintended side effects. If
112- /// this is the behaviour you seek, consider using <see cref="RemoveAndSetup" /> instead. This method remains here for
112+ /// this is the behavior you seek, consider using <see cref="RemoveAndSetup" /> instead. This method remains here for
113113 /// backwards compatibility.
114114 /// </remarks>
115115 [ Obsolete ( "This method can cause unintended side-effects, see remarks for details." ) ]
@@ -172,6 +172,7 @@ public unsafe void Remove()
172172 /// <param name="excludeIfMatches">Returns false if the given predicate is true.</param>
173173 /// <returns>True if this device originates from an emulator, false otherwise.</returns>
174174 /// <example>
175+ /// <code>
175176 /// bool isVirtualDevice = pnpDevice.IsVirtual(pDevice =>
176177 /// {
177178 /// List<string>? hardwareIds = pDevice.GetProperty<string[]>
@@ -187,8 +188,9 @@ public unsafe void Remove()
187188 /// };
188189 /// return hardwareIds.Any(id => excludedIds.Contains(id.ToUpperInvariant()));
189190 /// });
191+ /// </code>
190192 /// </example>
191- public bool IsVirtual ( Func < IPnPDevice , bool > ? excludeIfMatches = default )
193+ public bool IsVirtual ( Func < IPnPDevice , bool > ? excludeIfMatches = null )
192194 {
193195 IPnPDevice device = this ;
194196
You can’t perform that action at this time.
0 commit comments