コード例 #1
0
        /// <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);
        }
コード例 #2
0
 public void SetDelegate(GetVarWithContextDelegate inGetDelegate)
 {
     m_ConstValue             = default(Variant);
     m_GetDelegate            = null;
     m_GetWithContextDelegate = inGetDelegate;
 }
コード例 #3
0
 public void SetConst(Variant inValue)
 {
     m_ConstValue             = inValue;
     m_GetDelegate            = null;
     m_GetWithContextDelegate = null;
 }