---
title: "What is the difference between .tostring(), Convert.tostring()?"  
description: "What is the difference between .tostring(), Convert.tostring()?"  
author: "Sumit Kesarwani"  
published: 2014-11-20  
updated: 2020-09-22  
canonical: https://www.mindstick.com/interview/2259/what-is-the-difference-between-tostring-convert-tostring  
category: "c#"  
tags: ["c#", ".net", "string"]  
reading_time: 1 minute  

---

# What is the difference between .tostring(), Convert.tostring()?

The basic difference between them is “Convert” function handles NULLS while

“.ToString()” does not it will throw a NULL reference exception error. So as a good coding

practice using “convert” is always safe.

## Answers

### Answer by Sumit Kesarwani

The basic difference between them is “Convert” function handles NULLS while

“.ToString()” does not it will throw a NULL reference exception error. So as a good coding

practice using “convert” is always safe.


---

Original Source: https://www.mindstick.com/interview/2259/what-is-the-difference-between-tostring-convert-tostring

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
