本文整理汇总了C#中IRegistry.ClearClasses方法的典型用法代码示例。如果您正苦于以下问题:C# IRegistry.ClearClasses方法的具体用法?C# IRegistry.ClearClasses怎么用?C# IRegistry.ClearClasses使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IRegistry
的用法示例。
在下文中一共展示了IRegistry.ClearClasses方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Init
public void Init()
{
registry = RegistrySingleton.Instance;
registry.ClearClasses();
classId = registry.AddPrimitiveClass("numeric", DATA_TYPE.NUMERIC);
cla = registry.GetClassById(classId);
}
示例2: Init
public void Init()
{
registry = RegistrySingleton.Instance;
registry.ClearClasses();
classId = registry.AddPrimitiveClass("numeric", DATA_TYPE.NUMERIC);
cla = registry.GetClassById(classId);
cla.AddMethod("method", classId, new List<IArgument>() {registry.CreateArgument(classId) });
}
示例3: Init
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");
}
示例4: TestInit
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);
}
示例5: Init
public void Init()
{
registry = RegistrySingleton.Instance;
registry.ClearClasses();
}
示例6: Init
public void Init()
{
registry = RegistrySingleton.Instance;
registry.ClearClasses();
classId = registry.AddPrimitiveClass("numeric", DATA_TYPE.NUMERIC);
cla = registry.GetClassById(classId);
newVar = new OperandeVariable(classId, "myVar", true);
}
示例7: Init
public void Init()
{
registry = RegistrySingleton.Instance;
registry.ClearClasses();
intClass = registry.AddPrimitiveClass("numeric", DATA_TYPE.NUMERIC);
}