예제 #1
0
        private void BtnClick_Click(object sender, EventArgs e)
        {
            ListBoxPrint p             = new ListBoxPrint(LbxOutput);
            DelSSs       testStringDel = new DelSSs(ConCatFunc);
            DelSSs       anotherStrDel = new DelSSs(TwoString);
            DelSSv       voidStrDel    = new DelSSv(TwoStringVoid);

            p.Print(testStringDel("abc", "def"));
            p.Print(testStringDel("ABC", "DEF"));
            p.Print(StringDelPassed(5, testStringDel));
            p.Print(StringDelPassed(5, anotherStrDel));
            voidStrDel("123", "ABC");
        }
예제 #2
0
 public static string StringDelPassed(int k, DelSSs del)
 {
     return(del(k.RJ(5, '0'), (k + 1).RJ(5, '0')));
 }