Is there any way to inherit a class without constructors in .NET?

前端 未结 2 1736
名媛妹妹
名媛妹妹 2020-12-31 19:28

I\'m currently trying to modify some HttpWebRequest functions, but I can\'t do it through inheritance because HttpWebRequest has no public constructors (besides the deserial

2条回答
  •  [愿得一人]
    2020-12-31 20:30

    Unless you can trick the serialization constructor to do your bidding, then no, there is no way.

    The constructors of that class are internal, so you have no way of calling them.

提交回复
热议问题