コード例 #1
0
        public void InsertDashes()
        {
            string output = CharacterUtils.ToString(CharacterUtils.InsertDashes("ABCDEABCDEABCDEABCDEABCDE"));

            Assert.AreEqual("ABCDE-ABCDE-ABCDE-ABCDE-ABCDE", output);
        }
コード例 #2
0
 private string ConvertBytesToKey(byte[] bytes)
 {
     return
         (CharacterUtils.ToString(
              CharacterUtils.InsertDashes(_transcoder.ConvertToAlphas(CharacterUtils.UnpackBytes(bytes, 5)))));
 }