0
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);
        }
    }
}

I am new to Java, and I am converting a java codebase to C#. I want to know what type of code is this? Is it a getter?

 static {
            try {

                GET_PARAMETRIC_INDICATOR = ParametricIndicators.class.
                getDeclaredMethod("getParametricIndicator", new Class[]{ArrayList.class, short.class});

            } 
            catch (Exception e) {
                System.out.println("Predicate.static: " + e);
            }
        }
UsmanAzam
  • 539
  • 4
  • 15

0 Answers0