Well, I did these changes in the github online editor so, i am sure it won't ever compile so, I did it in this way because I thought it was an internal class. But you are right typeof(UpnpNatDevice) is preferable of course.