What result would print from the following code snippet Console.WriteLine("1234".GetType()); A:) Application won't compile B:) 1234 System.String C:) System.String D:) None of above
Pramod Thakur
GetType method will returns the type of Parameter.you have Placed string type so It will returns the System.String. If you pass 123.GetType() will returns System.Int32. Good one.
C:) System.String
System.String
@SURESH MOGUDALA Good explanation.
I am looking to hire a .net Web development team lead in Lee Summit, MO.(USA) .net experience, TFS, leadership and web service experience is required. If you know anyone who fits this senior level role, please let me know! Send resumes to [email protected] , thanks!
C
c
B:) System.String
C:)System.String
@amit ghuge: Please check the answer before posting.. Answer is System.StringPlease run the above code and see result would be System.String
Answer would be B e.g 1234 System.String