Scorpio.Runtime.ScriptContext.SetVariableObject C# (CSharp) Method

SetVariableObject() private method

private SetVariableObject ( string name, ScriptObject obj ) : bool
name string
obj Scorpio.ScriptObject
return bool
        private bool SetVariableObject(string name, ScriptObject obj)
        {
            if (m_variableDictionary.ContainsKey(name)) {
                m_variableDictionary[name] = obj.Assign();
                return true;
            }
            if (m_parent != null) {
                return m_parent.SetVariableObject(name, obj);
            }
            return false;
        }
        private object GetMember(CodeMember member)

Usage Example

示例#1
0
 private bool SetVariableObject(string name, ScriptObject obj)
 {
     if (m_variableDictionary.SetValue(name, obj.Assign()))
     {
         return(true);
     }
     if (m_parent != null)
     {
         return(m_parent.SetVariableObject(name, obj));
     }
     return(false);
 }
All Usage Examples Of Scorpio.Runtime.ScriptContext::SetVariableObject