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)
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.