Added TryInvoke and TryGetIndex methods to DynamicNull to prevent crashes on missing properties

This commit is contained in:
agrath@gmail.com
2011-07-11 11:13:31 -12:00
parent da3364c065
commit 48c11f6b45

View File

@@ -39,6 +39,16 @@ namespace umbraco.MacroEngines
result = this;
return true;
}
public override bool TryGetIndex(GetIndexBinder binder, object[] indexes, out object result)
{
result = this;
return true;
}
public override bool TryInvoke(InvokeBinder binder, object[] args, out object result)
{
result = this;
return true;
}
public bool IsNull()
{
return true;