13 references to Matches
System.Private.Windows.Core (6)
System\Private\Windows\Ole\BinaryFormatUtilities.cs (1)
152
if (request.TypedRequest && !typeof(T).
Matches
(record.TypeName, TypeNameComparison.AllButAssemblyVersion))
System\Private\Windows\Ole\TypeBinder.cs (1)
106
if (_rootType.
Matches
(typeName, TypeNameComparison.AllButAssemblyVersion))
System\TypeExtensions.cs (4)
61
return
Matches
(type.GetElementType()!, typeName.GetElementType(), comparison);
66
if (!
Matches
(type.GetGenericTypeDefinition(), typeName.GetGenericTypeDefinition(), comparison))
81
if (!
Matches
(genericTypes[i], genericNames[i], comparison))
96
/// <inheritdoc cref="
Matches
(Type, TypeName, TypeNameComparison)"/>
System.Private.Windows.Core.Tests (6)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (3)
299
Resolver = (TypeName typeName) => typeof(int[]).
Matches
(typeName, TypeNameComparison.TypeFullName)
849
if (typeof(MyClass1).
Matches
(typeName))
854
if (typeof(MyClass2).
Matches
(typeName))
System\Private\Windows\Ole\TypeBinderTests.cs (1)
80
Resolver = (TypeName typeName) => typeof(MyClass).
Matches
(typeName) ? typeof(MyClass) : null
System\TypeExtensionsTests.cs (2)
44
type.
Matches
(typeName, (TypeNameComparison)comparison).Should().Be(matches);
53
bool success = typeof(int).
Matches
(
System.Windows.Forms.Tests (1)
System\Windows\Forms\NativeToWinFormsAdapterTests.cs (1)
35
(TypeName typeName) => typeof(int).
Matches
(typeName, TypeNameComparison.TypeFullName) ? typeof(int) : null,