GetVariableObject() private method

private GetVariableObject ( string name ) : ScriptObject
name string
return Scorpio.ScriptObject
Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
        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);
        }