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

后端 未结 6 2386
闹比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:40

    If LibraryA exposes properties, returns objects from methods, or take parameters of types that are defined in LibraryB, and you declare or use a variable in Main Program of one of those types, you'll need the using statement.

提交回复
热议问题