What is the default type of a numeric value ?

Hi, i'm looking at some code that says :

BinaryWriter.Write(0); 

When i'm looking at the documentation of BinaryWriter, i learn that the Write() method accept almost every type of variables. My question is : What type will Write() use for 0 ?

thanks.

by Cork_le_Moche via /r/csharp

Leave a Reply