Please help me in understanding purpose of creating my own attributes. If you could make some examples of task, where creating my own Attribute type is the only way, i would be really thankful.

step towards AOP architecture, sometimes you need to run something before calling the method. like if you want to just print to specific user

[CheckUserPermission(userName, password)]
void print()
{
//your code
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.