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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
DavePosted Jun 18, 2008, 4:23 AM
Are you sure that is correct syntax? I cannot find it anywhere in the MSDN docs, or in any of my C# texts.
George GeorgePosted Jun 18, 2008, 4:31 AM
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