1 write to ReturnType
Microsoft.Maui.Controls (1)
BindableProperty.cs (1)
102 ReturnType = returnType;
34 references to ReturnType
Microsoft.Maui.Controls (21)
AppThemeBinding.cs (2)
110 if (!BindingExpressionHelper.TryConvert(ref value, _targetProperty, _targetProperty.ReturnType, true)) 112 BindingDiagnostics.SendBindingFailure(this, null, target, _targetProperty, "AppThemeBinding", BindingExpression.CannotConvertTypeErrorMessage, value, _targetProperty.ReturnType);
BindableObject.cs (2)
485 if (value is BindingBase binding && !property.ReturnType.IsAssignableFrom(typeof(BindableProperty))) 562 Application.Current?.FindMauiContext()?.CreateLogger<BindableObject>()?.LogWarning($"Cannot convert {value} to type '{property.ReturnType}'");
BindableProperty.cs (1)
210 Type returnType = ReturnType;
BindingExpression.cs (3)
168 value = Binding.GetSourceValue(value, property.ReturnType); 173 if (!BindingExpressionHelper.TryConvert(ref value, property, property.ReturnType, true)) 175 BindingDiagnostics.SendBindingFailure(Binding, current, target, property, "Binding", CannotConvertTypeErrorMessage, value, property.ReturnType);
Interactivity\PropertyCondition.cs (2)
51 Value = s_valueConverter.Convert(Value, Property.ReturnType, minforetriever, null); 81 value = s_valueConverter.Convert(value, Property.ReturnType, minforetriever, null);
MultiBinding.cs (6)
99 var value = GetSourceValue(GetValueArray(), _targetProperty.ReturnType); 103 if (!BindingExpressionHelper.TryConvert(ref value, _targetProperty, _targetProperty.ReturnType, true)) 105 BindingDiagnostics.SendBindingFailure(this, null, _targetObject, _targetProperty, "MultiBinding", BindingExpression.CannotConvertTypeErrorMessage, value, _targetProperty.ReturnType); 172 var value = GetSourceValue(GetValueArray(), _targetProperty.ReturnType); 176 if (!BindingExpressionHelper.TryConvert(ref value, _targetProperty, _targetProperty.ReturnType, true)) 178 BindingDiagnostics.SendBindingFailure(this, context, _targetObject, _targetProperty, "MultiBinding", BindingExpression.CannotConvertTypeErrorMessage, value, _targetProperty.ReturnType);
Setter.cs (1)
57 object value = valueconverter.Convert(Value, Property.ReturnType, minforetriever, serviceProvider);
StyleSheets\Style.cs (1)
122 var ret = value.ConvertTo(property.ReturnType, minforetriever, serviceProvider, out Exception exception);
TypedBinding.cs (3)
314 value = GetSourceValue(retval, property.ReturnType); 320 if (!BindingExpressionHelper.TryConvert(ref value, property, property.ReturnType, true)) 322 BindingDiagnostics.SendBindingFailure(this, sourceObject, target, property, "Binding", BindingExpression.CannotConvertTypeErrorMessage, value, property.ReturnType);
Microsoft.Maui.Controls.Xaml (13)
ApplyPropertiesVisitor.cs (9)
602 var convertedValue = value.ConvertTo(property.ReturnType, minforetriever, serviceProvider, out exception); 609 var nullable = property.ReturnType.IsGenericType && 610 property.ReturnType.GetGenericTypeDefinition() == typeof(Nullable<>); 611 if ((convertedValue == null && (!property.ReturnType.IsValueType || nullable)) || 612 (property.ReturnType.IsInstanceOfType(convertedValue))) 806 if (property?.ReturnType?.GenericTypeArguments == null) 809 if (property.ReturnType.GenericTypeArguments.Length != 1 || !property.ReturnType.GenericTypeArguments[0].IsInstanceOfType(value)) 813 var addMethod = GetAllRuntimeMethods(property.ReturnType).FirstOrDefault(mi => mi.Name == "Add" && mi.GetParameters().Length == 1);
MarkupExtensions\AppThemeBindingExtension.cs (1)
71 propertyType = bp?.ReturnType
MarkupExtensions\OnIdiomExtension.cs (1)
58 propertyType = bp?.ReturnType
MarkupExtensions\OnPlatformExtension.cs (1)
68 propertyType = bp?.ReturnType
MarkupExtensions\StaticResourceExtension.cs (1)
43 var propertyType = bp?.ReturnType ?? pi?.PropertyType;