本文整理汇总了C#中Criteria.remove方法的典型用法代码示例。如果您正苦于以下问题:C# Criteria.remove方法的具体用法?C# Criteria.remove怎么用?C# Criteria.remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Criteria
的用法示例。
在下文中一共展示了Criteria.remove方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetInstance
//public Object GetInstance() {
// if(!factory.isAccessible()) {
// factory.setAccessible(true);
// }
// return factory.newInstance();
//}
/// This is used to instantiate the object using a constructor that
/// takes deserialized objects as arguments. The object that have
/// been deserialized can be taken from the <c>Criteria</c>
/// object which contains the deserialized values.
/// </summary>
/// <param name="criteria">
/// this contains the criteria to be used
/// </param>
/// <returns>
/// this returns the object that has been instantiated
/// </returns>
public Object GetInstance(Criteria criteria) {
Object[] values = list.toArray();
for(int i = 0; i < list.size(); i++) {
String name = list.get(i).getName();
Variable variable = criteria.remove(name);
Object value = variable.getValue();
values[i] = value;
}
return GetInstance(values);
}