public class ParametricIndicators {
static Method GET_PARAMETRIC_INDICATOR; //equal to a double number (as parameter)
static {
try {
GET_PARAMETRIC_INDICATOR = ParametricIndicators.class.
getDeclaredMethod("getParametricIndicator", new Class[]{ArrayList.class, short.class});
}
catch (Exception e) {
System.out.println("Predicate.static: " + e);
}
}
}
我是Java新手,我正在将java代码库转换为C#。我想知道这是什么类型的代码?它是吸气剂吗?
static {
try {
GET_PARAMETRIC_INDICATOR = ParametricIndicators.class.
getDeclaredMethod("getParametricIndicator", new Class[]{ArrayList.class, short.class});
}
catch (Exception e) {
System.out.println("Predicate.static: " + e);
}
}