Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some problems encountered in copying code LA from Linqpad
#4
script.setup before usings is not possible, but you can prevent LA putting usings into //. //...
In script template (in Options) remove //. //... Can remove everything if don't need script.setup (it is optional).

Actually script.setup can be moved to a module initializer function in global.cs. Not tested. But then it will be executed in all scripts. Probably not a good idea.

Maybe LA should have option "put usings into /. //..".


Messages In This Thread
RE: Some problems encountered in copying code LA from Linqpad - by Gintaras - 10-13-2022, 11:39 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)