is there no diffrence between how compiler treats a static method and an instance method (if both are only accessing their local variables) ??
M Waseem Chishti
Posts
-
static Method And Thread Safety -
static Method And Thread SafetyThankx :-D
-
static Method And Thread Safetyyeah all methods are maintaining their own copies. all i wanted to know is what copiler does when a method is called ?? is there any diffrence between behaviour of compiler when you call a static method ??
-
static Method And Thread SafetyHi guys, I am facing a problem regarding static methods, what happens when we call a static method (accessing only local variables), public static void HelpMePlease() { int a=0; a++; Console.WriteLine("A must be 1 " + " a :" + a.ToString()); a++; Console.WriteLine("A must be 2 " + " a :" + a.ToString()); a++; Console.WriteLine("A must be 3 " + " a :" + a.ToString()); a++; Console.WriteLine("A must be 4 " + " a :" + a.ToString()); } Lets suppose, I call this method from 50 threads simultaneously. will All methods keep single copy of a. or each one will have its own copy. Please explain it comprehensively, compiler internals etc. Thanks in advance M.Waseem
-
Decompilethere are many obfuscation programs are available in market which you can use to secure your source code. a good defination of obfuscator from google : ) "Obfuscator is a program that garbles a source either by encryption or by substitution of codes. This means that the source to be compiled is hard to understand and hard to debug. But during runtime it is decrypted as pure source."
-
Setting a control focus when form is loadedselect the text box you want to get focus, in designer go to its properties, set "TabIndex" property to 0 and Its done :)