why does my C# client that uses Library A need to have a using statement for Library B (which A uses)

后端 未结 6 2363
闹比i
闹比i 2020-12-22 00:59

I have:

  • Main Program Class - uses Library A
  • Library A - has partial classes which mix in methods from Library B
  • Library B - mix in methods &a
6条回答
  •  一整个雨季
    2020-12-22 01:13

    All you're using is the Node class from Library A, that's true. However, part of the definition of the Node class is the fact that it implements the INode interface from Library B.

    The very fact of the existence of the Node class demands that you include a reference to Library B.

提交回复
热议问题