what is [] brackets in .net? [duplicate]

They are used to put Attributes on classes or methods (or other stuff). That way, you can attach data to classes that should not be part of the actual class. You can read more on them here

Leave a Comment