/// <summary> /// Uses a delegate to return a value for the given key. /// </summary> public CustomVariantResolver SetVar(TableKeyPair inKey, GetVarWithContextDelegate inGetter) { if (inGetter == null) { throw new ArgumentNullException("inGetter"); } MakeFullPathVarRule(inKey).SetDelegate(inGetter); return(this); }
public void SetDelegate(GetVarWithContextDelegate inGetDelegate) { m_ConstValue = default(Variant); m_GetDelegate = null; m_GetWithContextDelegate = inGetDelegate; }
public void SetConst(Variant inValue) { m_ConstValue = inValue; m_GetDelegate = null; m_GetWithContextDelegate = null; }