Tagged: .net


SharePoint SPWeb object Bad Language

If you are running your C# code in different thread (e.g.: async EventReceivers or TimerJob), sometimes you may notice, that your SPWeb object is initialized in different language. You can use SPUtility.SetThreadCulture method to...

C# Ref vs Out parameter 0

C# Ref vs Out parameter

In C# language you can pass parameters to function with Ref or Out keywords. Here is some simple example:   Ref parameter needs to be initialized before passing to function call two-way – “in”...