I know that VisualStudio has the possibilty to check whether a member is used ("See all references").
Is it possible to check this programmatically as well. Like:
Assembly assem = Assembly.GetAssembly(t);
MemberInfo[] members = t.GetMembers();
foreach (MemberInfo mi in members)
{
// Check if member is used somewhere in the solution
}