Abc.NCrafts.Quizz.Questions._021.Answer2.Run C# (CSharp) Méthode

Run() public static méthode

public static Run ( ) : void
Résultat void
        public static void Run()
        {
            var stream = new MemoryStream(0x1000);
            var messageBytes = Encoding.ASCII.GetBytes(_text);

            stream.Write(messageBytes, 0, messageBytes.Length);

            // begin
            var bytes = stream.ToArray();
            for (var i = 0; i < bytes.Length; i++)
            {
                bytes[i] = (byte)char.ToUpper(((char)bytes[i]));
            }
            // end

            var upperMessage = Encoding.ASCII.GetString(bytes);
            Logger.Log(upperMessage);
        }
    }
Answer2