GetVariableObject() private method

private GetVariableObject ( string name ) : ScriptObject
name string
return Scorpio.ScriptObject
Example #1
0
 private ScriptObject GetVariableObject(string name)
 {
     if (m_variableDictionary.ContainsKey(name))
     {
         return(m_variableDictionary[name]);
     }
     if (m_parent != null)
     {
         return(m_parent.GetVariableObject(name));
     }
     return(null);
 }
        private ScriptObject GetVariableObject(string name)
        {
            var ret = m_variableDictionary[name];

            if (ret != null)
            {
                return(ret);
            }
            if (m_parent != null)
            {
                return(m_parent.GetVariableObject(name));
            }
            return(null);
        }