Hello everyone,
What are the differences between [Serializable] and [Serializable()]? From IL code, I think they should be the same? So, we have two ways of syntax to write the same thing?
thanks in advance,
George
Hello everyone,
What are the differences between [Serializable] and [Serializable()]? From IL code, I think they should be the same? So, we have two ways of syntax to write the same thing?
thanks in advance,
George
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 attend5days leftRegister
Dave131 reputationPosted Jun 18, 2008, 12:23 AM EDT
Are you sure that is correct syntax? I cannot find it anywhere in the MSDN docs, or in any of my C# texts.
George GeorgeRank #1,735 · 870 reputationPosted Jun 18, 2008, 12:31 AM EDT
Sure, Dave. Looks like they behaves the same, but I am not sure whether they are actually the same since I can not find any document. So, you always write [Serializable]? Other than [Serializable()]?
regards,
George