NetworkStream serverStream = default(NetworkStream);
Is default a keyword?
What does 'default' mean in this context?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jul 8, 2012, 4:04 AM EDT
In this context it means the default value of the type in parentheses.
As NetworkStream is a reference type it's default value is 'null'.