public void Init() { registry = RegistrySingleton.Instance; registry.ClearClasses(); classId = registry.AddPrimitiveClass("numeric", DATA_TYPE.NUMERIC); cla = registry.GetClassById(classId); cla.AddMethod("staticMethod", classId, new List<IArgument>() { registry.CreateArgument(classId) }, true); cla.AddMethod("method", classId, new List<IArgument>() { registry.CreateArgument(classId) }); }
public void Init() { registry = RegistrySingleton.Instance; registry.ClearClasses(); intId = registry.AddPrimitiveClass("numeric", DATA_TYPE.NUMERIC); intClass = registry.GetClassById(intId); intClass.AddMethod("method", intId, new List<IArgument>() { registry.CreateArgument(intId), registry.CreateArgument(intId) }); intVar = new OperandeVariable(intId, "num"); }