Code syntax for added references
I added a reference to Microsoft.SharePoint.Client.dll to the Query Properties dialog using the F4 key. In my code, I have to include the complete reference. For example:
Microsoft.SharePoint.Client.**ClientContext **srcContext = new Microsoft.SharePoint.Client.**ClientContext**(srcUrl);
Is there a way to not have to include the complete reference, for example:
**ClientContext **srcContext = new **ClientContext**(srcUrl);
Comments
Pardon the ** in my post. For some reason, when I tried to bold the words, the ** got added.
Look into the using directive:
https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/using-directive
In LINQPad, the using statements are moved to a separate tab in the Query Properties window automatically.