Is it possible to use Linq and lambdas without including a System.Linq namespace?

后端 未结 3 630
一整个雨季
一整个雨季 2020-12-11 04:57

Some time ago, I\'ve been working on a quite twisted project - I could only write the code in the single scope and it would be later put in a C# function (by another module)

3条回答
  •  独厮守ぢ
    2020-12-11 05:17

    Not very clear why you can not access file "header", but if the issue that you can not type in the begining of the file using dirrective, you can still use full qualified name of the type, like:

    System.Linq.Enumerable(...)
    

    To make this work, you naturally, need to include also correct references.

    If this is not what you're asking for, please clarify.

提交回复
热议问题