namespace TriInspector.Resolvers { internal class ErrorValueResolver : ValueResolver { private readonly string _expression; public ErrorValueResolver(TriPropertyDefinition propertyDefinition, string expression) { _expression = expression; } public override bool TryGetErrorString(out string error) { error = $"Method '{_expression}' not exists or has wrong signature"; return true; } public override T GetValue(TriProperty property, T defaultValue = default) { return defaultValue; } } }