C# introduced attributes, which allow you to embed information right
into the C# source code. Attributes are placed in square brackets,
e.g. [MTAThread], above an Attribute Target (e.g. class, field,
method, etcetera).  C# Attributes can be used to mark fields, methods,
classes etcetera with markings that another program can interpret.


On Oct 16, 10:04 pm, "VIKAS GARG" <[EMAIL PROTECTED]> wrote:
> Please can anyone tell me what are attributes used for.I have  gone through
> several tutorials
> but everywhere it is explained in terms of reflection
> that how can we retrieve information of attributes using reflection
>
> [System.Serializable]public class SampleClass
> {
>     // Objects of this type can be serialized.
>
> }
>
> Will this make class serializable here
>
> after declaring attributes how do we use them

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/DotNetDevelopment

You may subscribe to group Feeds using a RSS Feed Reader to stay upto date 
using following url  

<a href="http://feeds.feedburner.com/DotNetDevelopment";> 
http://feeds.feedburner.com/DotNetDevelopment</a>
-~----------~----~----~----~------~----~------~--~---

Reply via email to