Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这可行,但我想使用“使用”关键字。
Stream st = null; st = request.GetRequestStream(); st.Write(bytes, 0, bytes.Length); st.Close();
我将如何在这里使用关键字“使用”?
使用(流 st = ...
using (Stream st = request.GetRequestStream()) { st.Write(bytes, 0, bytes.Length); }