public class C1_FunctionInfo : FunctionInfo
{
public int iPeriod = 12;
public override string Name
{
get { return "C1"; }
}
public override int MinArgs
{
get { return 1; }
}
public override int MaxArgs
{
get { return 4; }
}
public override object Evaluate(object[] args)
{
return 100;
}
}
public class INNERTEST_FunctionInfo : FunctionInfo
{
public override string Name
{
get { return "INNERTEST"; }
}
public override int MaxArgs
{
get { return 4; }
}
public override int MinArgs
{
get { return 1; }
}
public override object Evaluate(object[] args)
{
//如何执行 另外一个自定义函数: C1(99)
}
}
|
|