public TestInit() { registry = RegistrySingleton.Instance; registry.ClearClasses(); boolId = registry.AddPrimitiveClass("boolean", DATA_TYPE.BOOLEAN); strId = registry.AddPrimitiveClass("string", DATA_TYPE.STRING); dbId = registry.AddCustomClass("database"); List<IArgument> inputs; registry .GetClassById(strId) .AddMethod("method", strId, new List<IArgument>() { registry.CreateArgument(strId) }); registry .GetClassById(strId) .AddMethod("staticMethod", strId, new List<IArgument>() { registry.CreateArgument(strId) }, true); registry .GetClassById(dbId) .AddConstructor(); registry .GetClassById(dbId) .AddConstructor(new List<IArgument>() { registry.CreateArgument(strId) }); inputs = new List<IArgument>() { registry.CreateArgument(strId), registry.CreateArgument(strId) }; registry .GetClassById(dbId) .AddMethod("method", strId, inputs); inputs = new List<IArgument>() { registry.CreateArgument(strId), registry.CreateArgument(strId) }; registry .GetClassById(dbId) .AddMethod("staticMethod", strId, inputs, true); builder = ExpressionBuilder.GetBuilder(ref registry); }