What is Marker Interface in .Net? [Resolved]

Posted by Girish578 under C# on 3/25/2010 | Views : 6509 | Status : [Member] | Replies : 2
What is Marker Interface in .Net? How can I implement in Dot Net? What is the exact use of this. If possible please explain with an example.




Responses

Posted by: Sagarp on: 3/25/2010 [Member] Bronze

Up
0
Down

Resolved
hi check following article


http://www.muellerdesigns.net/dasblog/2008/07/30/MarkerInterfacesAndCAttributes.aspx 


Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

Girish578, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhi2434 on: 3/25/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
Marker interfaces as the name suggests, doesnt have anything in it, just used to mark a class.

If you have worked with asp.net, you might have used IRequiredSessionState . This has no member, just acts as a Marker interface.

In .NET we use Marker Interface using Attributes.

www.abhisheksur.com

Girish578, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response