Is it possible to use "This" keyword in a static method?
Bala S
Select an image from your device to upload
I think Yea we can use This in parameter for static method. For implementing the extension methods we use “This” in parameters.
Ex :public static class ExtMetClass { public static int IntegerExtension(this string str) { return Int32.Parse(str); } }
According to me you can use “this” keyword only with static method parameter but there is certain condition like class and method must be static and this method will be called extension method.
Visit - www.sudheshwertech.com for online dot net training. Thanks