- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
public static string ConvertBase64ToString(string b64)
        {
            string Value = b64;
            if (Value != null && Value.Length > 0)
            {
                System.Text.ASCIIEncoding encoder = new System.Text.ASCIIEncoding();
                System.Text.Decoder decoder = encoder.GetDecoder();
                byte[] bytes = Convert.FromBase64String(Value);
                int charCount = decoder.GetCharCount(bytes, 0, bytes.Length);
                char[] chars = new char[charCount];
                decoder.GetChars(bytes, 0, bytes.Length, chars, 0);
                string results = new String(chars);
                return results;
            }
            return string.Empty;
        }
                                 
        
            не говоря уже про локальную переменную Value, весь блок заменяется на 
return System.Text.ASCIIEncoding.ASCII.GetStrin  g(Convert.FromBase64String(Value));
        
        
Удачи в отладке и переделке.
всех 70-536 сдавать заставить
"Я, Bjarne_Stroustrup, находясь в здравом уме и твердой памяти, торжественно заявляю:"