Here we will discuss how we can resolve the issue which comes while working with out parameter in C#.Net. We were working on an existing solution when we build the solution it gave error like below:
out object afterStatusVariable
Error comes as: Support all classes in the .NET Framework class hierarchy and provide low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy. Invalid expression term ‘object’.
Read some sharepoint online tutorials:
- Steps to create a provider hosted add-in in SharePoint Online
- Steps to create Azure WebJobs for SharePoint online and deploy in Microsoft Azure
Instead of writing in the same function. We can declare it first and then we can use it like:
Hope this will be helpful.
SharePoint Online FREE Training
JOIN a FREE SharePoint Video Course (3 Part Video Series)