471,348 Members | 1,188 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

A basic question

Am just starting to learn C# so tolerance.

What is the difference between

[Serializable] public class Stroke {

and

[Serializable()] public class Stroke {
Feb 18 '06 #1
1 956
Ian,

There is no functional difference. The C# compiler allows the first
syntax as a convenience for applying attributes.

Brian

Ian Semmel wrote:
Am just starting to learn C# so tolerance.

What is the difference between

[Serializable] public class Stroke {

and

[Serializable()] public class Stroke {


Feb 18 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Malcolm | last post: by
5 posts views Thread by Aussie Rules | last post: by
3 posts views Thread by Scott Stark | last post: by
1 post views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.