I am not sure whether is this possible for not but I have a requirement that needs to inherit classes conditionally.

For example I have a class Name ABC need to Inherit PQR sometime and XYZ conditionally like 

```
Public Class ABC : PQR OR Public Class ABC:XYZ

```

So I want to do like with help of web.config app setting if we require Old Config inherit PQR else inherit XYZ