public static boolean isValidCode(int errorCode) {for (FormulaError error : values()) {if (error.getCode() == errorCode) return true;if (error.getLongCode() == errorCode) return true;}return false;}

public static bool IsValidCode(int errorCode){foreach (FormulaError error in _values){if (error.Code == errorCode) return true;if (error.LongCode == errorCode) return true;}return false;}
