In the same solution, I have two projects: P1 and P2. How can I make use of a class of P1 in P2?
Note that the types in P1 that you wish to access directly must have a sufficient access level: typically this means they must be made public.
Simply add reference to P1 from P2
In project P1 make the class public (if it isn't already). Then add a project reference (rather than a file reference, a mistake I've come across occasionally) to P2. Add a using statement in P2 at the correct place and start using the class from P1.
(To mention this: The alternative to making the class public would be to make P2 a friend to P1. This is, however, unlikely to be the answer you are after as it would have some consequences. So stick with the above suggestion.)