24 references to InheritsFromOrImplements
Microsoft.Maui.Controls.Build.Tasks (24)
BindablePropertyReferenceExtensions.cs (2)
26 md.Parameters[0].ParameterType.InheritsFromOrImplements(cache, module.ImportReference(cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject"))), module).FirstOrDefault()?.Item1; 43 md.Parameters[0].ParameterType.InheritsFromOrImplements(cache, module.ImportReference(cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject"))), module).FirstOrDefault()?.Item1;
CompiledValueProviders\SetterValueProvider.cs (1)
69 return context.Variables[firstItem].VariableType.InheritsFromOrImplements(context.Cache, genericType);
MethodDefinitionExtensions.cs (1)
37 if (!argType.InheritsFromOrImplements(context.Cache, paramType))
SetNamescopesAndRegisterNamesVisitor.cs (5)
60 if (setNameScope && Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject")))) 63 else if (Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "Element")))) 81 if (Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject")))) 108 if (Context.Variables[node].VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject")))) 174 if (!element.VariableType.InheritsFromOrImplements(Context.Cache, Context.Body.Method.Module.ImportReference(Context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "Element"))))
SetPropertiesVisitor.cs (8)
1218 if (!md.methodDef.ReturnType.InheritsFromOrImplements(context.Cache, invoke.ReturnType) || invoke.Parameters.Count != md.methodDef.Parameters.Count) 1223 if (!invoke.Parameters[i].ParameterType.InheritsFromOrImplements(context.Cache, md.methodDef.Parameters[i].ParameterType)) 1320 return varValue.VariableType.InheritsFromOrImplements(context.Cache, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindingBase"))); 1372 return varValue.VariableType.InheritsFromOrImplements(context.Cache, bpTypeRef) || varValue.VariableType.FullName == "System.Object"; 1383 if (!parent.VariableType.InheritsFromOrImplements(context.Cache, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "BindableObject")))) 1500 if (vardef.VariableType.InheritsFromOrImplements(context.Cache, propertyType)) 1633 if (varValue.VariableType.InheritsFromOrImplements(context.Cache, paramType)) 1648 && !collectionType.InheritsFromOrImplements(context.Cache, context.Module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls", "ResourceDictionary"))))
TypeReferenceExtensions.cs (6)
201 if (!argument.InheritsFromOrImplements(cache, baseClassArgument)) 206 if (!baseClassArgument.InheritsFromOrImplements(cache, argument)) 241 if (typeDef.Interfaces.Any(ir => ir.InterfaceType.ResolveGenericParameters(typeRef).InheritsFromOrImplements(cache, baseClass))) 247 return typeRef.InheritsFromOrImplements(cache, baseClass); 329 if (!returnType.InheritsFromOrImplements(cache, toType)) 332 if (!fromType.InheritsFromOrImplements(cache, paramType))
VariableDefinitionExtensions.cs (1)
15 if (!self.VariableType.InheritsFromOrImplements(cache, type) && implicitOperator != null)