public void DoSomething() { NumericDelegates customConverter = new NumericDelegates(); try { checkPassword("abc123-"); //Strong password } catch (SecurityException ex) { //Too simple password } }
public void DoSomething() { NumericDelegates customConverter = new NumericDelegates(); int result = customConverter.ConvertToInt("II", ConvertFromRomanCardinal); }