I have developed a .NET dll using c#.net targeted to framework 4.0 .

I have developed a .NET dll using c#.net targeted to framework 4.0 .
Now I need to implement the licensing functionality.

I want to implement the Design time licensing feature which is nothing but during the development time in visual studio.

How to achieve this? Please do help..

Basically user is not allowed to create object from my DLL after certain period of time ...

What I have tried:

Tried with GetProcess() mecahism..But I need the code should get executed during design time ..NOT Runtime