{
if ((needsGetter && part.LastGetter == null) || (needsSetter && part.NextPart == null && part.LastSetter == null))
{
- Console.WriteLine("Binding", PropertyNotFoundErrorMessage, part.Content, current, target.GetType(), property.PropertyName);
+ Console.WriteLine($"Binding, {PropertyNotFoundErrorMessage}, {part.Content}, {current}, {target.GetType()}, {property.PropertyName}");
break;
}
}
if (!TryConvert(ref value, property.ReturnType, true))
{
- Console.WriteLine("Binding", "{0} can not be converted to type '{1}'", value, property.ReturnType);
+ Console.WriteLine($"Binding : {value} can not be converted to type {property.ReturnType}");
return;
}
if (!TryConvert(ref value, part.SetterType, false))
{
- Console.WriteLine("Binding", "{0} can not be converted to type '{1}'", value, part.SetterType);
+ Console.WriteLine($"Binding : {value} can not be converted to type {part.SetterType}");
return;
}
{
int index;
if (!int.TryParse(part.Content, out index))
- Console.WriteLine("Binding", "{0} could not be parsed as an index for a {1}", part.Content, sourceType);
+ Console.WriteLine($"Binding : {part.Content} could not be parsed as an index for a {sourceType}");
else
part.Arguments = new object[] { index };
}
catch (Exception)
{
- Console.WriteLine("EventTrigger", "Can not attach EventTrigger to {0}.{1}. Check if the handler exists and if the signature is right.", bindable.GetType(), Event);
+ Console.WriteLine($"EventTrigger", "Can not attach EventTrigger to {binding.GetType()}.{Evnet}. Check if the handler exists and if the signature is right.");
}
if (_eventinfo != null && _handlerdelegate != null)
_eventinfo.AddEventHandler(bindable, _handlerdelegate);