1 instantiation of TypeRefComparer
Microsoft.Maui.Controls.Build.Tasks (1)
TypeReferenceExtensions.cs (1)
57 public static TypeRefComparer Default => s_default ?? (s_default = new TypeRefComparer());
48 references to TypeRefComparer
Microsoft.Maui.Controls.Build.Tasks (48)
CompiledConverters\RDSourceTypeConverter.cs (3)
169 if (!TypeRefComparer.Default.Equals(ca.AttributeType, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "XamlResourceIdAttribute")))) 171 if (!TypeRefComparer.Default.Equals(ca.ConstructorArguments[2].Value as TypeReference, type)) 182 if (!TypeRefComparer.Default.Equals(ca.AttributeType, module.ImportReference(cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "XamlResourceIdAttribute"))))
CompiledMarkupExtensions\StaticExtension.cs (13)
42 if (TypeRefComparer.Default.Equals(memberRef, module.TypeSystem.Boolean)) 44 if (TypeRefComparer.Default.Equals(memberRef, module.TypeSystem.String)) 48 if (TypeRefComparer.Default.Equals(memberRef, module.TypeSystem.Char)) 50 if (TypeRefComparer.Default.Equals(memberRef, module.TypeSystem.Single)) 52 if (TypeRefComparer.Default.Equals(memberRef, module.TypeSystem.Double)) 54 if (TypeRefComparer.Default.Equals(memberRef, module.TypeSystem.Byte) || TypeRefComparer.Default.Equals(memberRef, module.TypeSystem.Int16) || TypeRefComparer.Default.Equals(memberRef, module.TypeSystem.Int32)) 56 if (TypeRefComparer.Default.Equals(memberRef, module.TypeSystem.SByte) || TypeRefComparer.Default.Equals(memberRef, module.TypeSystem.UInt16) || TypeRefComparer.Default.Equals(memberRef, module.TypeSystem.UInt32)) 58 if (TypeRefComparer.Default.Equals(memberRef, module.TypeSystem.Int64)) 60 if (TypeRefComparer.Default.Equals(memberRef, module.TypeSystem.UInt64))
MethodDefinitionExtensions.cs (1)
62 if (TypeRefComparer.Default.Equals(arg.AttributeType, attribute))
ModuleDefinitionExtensions.cs (5)
44 if (!TypeRefComparer.Default.Equals(md.Parameters[i].ParameterType, x.module.ImportReference(parameterTypes[i]))) 82 if (!TypeRefComparer.Default.Equals(md.Parameters[i].ParameterType, x.module.ImportReference(cache, parameterTypes[i]))) 96 if (!TypeRefComparer.Default.Equals(md.Parameters[i].ParameterType, x.module.ImportReference(cache, parameterTypes[i]))) 179 if (!TypeRefComparer.Default.Equals(md.Parameters[i].ParameterType, parameterTypes[i])) 205 if (!TypeRefComparer.Default.Equals(md.Parameters[i].ParameterType, x.module.ImportReference(cache, parameterTypes[i])))
NodeILExtensions.cs (5)
627 || requiredServices.Contains(module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IProvideParentValues")), TypeRefComparer.Default) 628 || requiredServices.Contains(module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IReferenceProvider")), TypeRefComparer.Default)) 667 if (!alreadyContainsProvideValueTarget && requiredServices.Contains(module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IProvideValueTarget")), TypeRefComparer.Default)) 694 if (node.NamespaceResolver != null && createAllServices || requiredServices.Contains(module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IXamlTypeResolver")), TypeRefComparer.Default)) 719 if (node is IXmlLineInfo && createAllServices || requiredServices.Contains(module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IXmlLineInfoProvider")), TypeRefComparer.Default))
SetPropertiesVisitor.cs (9)
661 && TypeRefComparer.Default.Equals(pd.GetMethod.Parameters[0].ParameterType.ResolveGenericParameters(previousPartTypeRef), module.ImportReference(context.Cache, ("mscorlib", "System", "Int32"))) 666 && TypeRefComparer.Default.Equals(pd.GetMethod.Parameters[0].ParameterType.ResolveGenericParameters(previousPartTypeRef), module.ImportReference(context.Cache, ("mscorlib", "System", "String"))) 671 && TypeRefComparer.Default.Equals(pd.GetMethod.Parameters[0].ParameterType.ResolveGenericParameters(previousPartTypeRef), module.ImportReference(context.Cache, ("mscorlib", "System", "Object"))) 678 if (!TypeRefComparer.Default.Equals(indexType, module.TypeSystem.String) && !TypeRefComparer.Default.Equals(indexType, module.TypeSystem.Int32)) 729 if (TypeRefComparer.Default.Equals(indexType, module.TypeSystem.String)) 731 else if (TypeRefComparer.Default.Equals(indexType, module.TypeSystem.Int32) && int.TryParse(indexArg, out index)) 934 if (TypeRefComparer.Default.Equals(indexType, module.TypeSystem.String)) 936 else if (TypeRefComparer.Default.Equals(indexType, module.TypeSystem.Int32))
TypeReferenceExtensions.cs (7)
56 static TypeRefComparer s_default; 57 public static TypeRefComparer Default => s_default ?? (s_default = new TypeRefComparer()); 192 TypeRefComparer.Default.Equals(genericInstance.ElementType, genericInstanceBaseClass.ElementType)) 209 else if (!TypeRefComparer.Default.Equals(argument, baseClassArgument)) 220 if (TypeRefComparer.Default.Equals(typeRef, baseClass)) 232 TypeRefComparer.Default.Equals((baseClass as GenericInstanceType).GenericArguments[0], arrayType)) 306 if (TypeRefComparer.Default.Equals(fromType, toType))
XamlCache.cs (1)
56 public Dictionary<TypeReference, Type> GetKnownCompiledTypeConverters(ModuleDefinition module) => _knownCompiledTypeConverters ??= new(TypeRefComparer.Default)
XamlCTask.cs (3)
461 if (!TypeRefComparer.Default.Equals(ca.AttributeType, module.ImportReference(cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "XamlResourceIdAttribute")))) 463 if (!TypeRefComparer.Default.Equals(ca.ConstructorArguments[2].Value as TypeReference, type)) 474 if (!TypeRefComparer.Default.Equals(ca.AttributeType, module.ImportReference(cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "XamlResourceIdAttribute"))))
XamlTask.cs (1)
108 if (!TypeRefComparer.Default.Equals(ca.AttributeType, module.ImportReference(cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "XamlResourceIdAttribute"))))