函数类型
Наследование: ScriptObject
Пример #1
0
 public void Sort(ScriptFunction func)
 {
     Array.Sort <ScriptObject>(m_listObject, 0, m_size, new Comparer(m_Script, func));
 }
Пример #2
0
 public override ScriptObject Clone()
 {
     if (FunctionType != FunstionType.Script)
         return base.Clone();
     ScriptFunction ret = new ScriptFunction(Script, Name, m_ScriptFunction);
     ret.IsStatic = IsStatic;
     return ret;
 }
Пример #3
0
 internal Comparer(Script script, ScriptFunction func)
 {
     this.script = script;
     this.func   = func;
 }
Пример #4
0
 public CodeFunction(ScriptFunction func, string breviary, int line)
     : base(breviary, line)
 {
     this.Func = func;
 }
Пример #5
0
 public CodeFunction(ScriptFunction func)
 {
     this.Func = func;
 }
Пример #6
0
 public void Sort(ScriptFunction func)
 {
     Array.Sort <ScriptValue>(m_Objects, 0, m_Length, new Comparer(func));
 }
Пример #7
0
 public Comparer(ScriptFunction func)
 {
     this.func = func;
 }