What is the problem with the following function? (The code is supposed to convert a Stream into byte array) public static byte[] ReadFully(Stream input) { using (MemoryStream ms = new MemoryStream()) { input.CopyTo(ms); return ms.ToArray(); } }
Correct Answer: It will work only in .NET Framework 4 or above, as the CopyTo function of the memory stream is available only in .NET Framework 4 or later versions.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More C# MCQ Questions