mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 00:08:51 -05:00
Allow expressions with leading dollar sign in ValueResolver.Resolve method
This commit is contained in:
parent
2350b65663
commit
f5f09ed76e
@ -7,6 +7,11 @@ namespace TriInspector.Resolvers
|
||||
public static ValueResolver<T> Resolve<T>(TriPropertyDefinition propertyDefinition,
|
||||
string expression)
|
||||
{
|
||||
if (expression != null && expression.StartsWith("$"))
|
||||
{
|
||||
expression = expression.Substring(1);
|
||||
}
|
||||
|
||||
if (StaticFieldValueResolver<T>.TryResolve(propertyDefinition, expression, out var sfr))
|
||||
{
|
||||
return sfr;
|
||||
|
Loading…
Reference in New Issue
Block a user