#Difference between Convert.ToString() and ToString()
Explore tagged Tumblr posts
Text
Difference between Convert.ToString() and ToString()
Difference between Convert.ToString() and ToString()
In this post, we will explain the difference between .ToString() and Convert.ToString() methods in C#.
The basic difference between them is “Convert.ToString()” handles NULL values while “.ToString()” doesn’t. Which means if the variable being passed to Convert.ToString() is NULL, it won’t throw an exception.
Whereas, “.ToString()” does not handle NULL values and it will throw a NULL reference…
View On WordPress
1 note
·
View note
Text
Q061. What is the difference between boxing and unboxing in C#? Q062. What is the difference between boxing and conversion in C#? Q063. What is the difference between unboxing and casting? Q064. What is the difference between int.Parse(), int.TryParse() and Convert.ToInt32() methods? Q065. What is the difference between .ToString() and Convert.ToString() in C#? Q066. What is the difference between String.IsNullOrEmpty() and String.IsNullOrWhiteSpace() in C#? Q067. What is a sealed class in C#? Can you make the abstract class sealed? Q068. What is the sealed method in C#? How can you make any method sealed? Q069. What is the difference between the sealed method and the private method in C#? Q070. What is the difference between Sealed Class and Abstract Class in C#?
#CSharpInterviewQuestionsAndAnswers#CSharpInterviewQuestions2022#CSharpInterview#InterviewPreparation#InterviewQuestionsAndAnswers#techpointfundamentals#techpointfunda#techpoint
1 note
·
View note