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

后端 未结 6 2367
闹比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条回答
  •  旧时难觅i
    2020-12-22 01:24

    A partial class in c# is just a class that exists in multiple files. You cannot have 2 files that define a partial class in different namespaces.

提交回复
热议问题