While coding we can use C# native data types as well as .NET CTS types. I am curious to know which data type should I use while declaring any variable. I found somewhere that we should use c# native datatype while I believe we should use CTS Type as in IL every data type is going to be in converted in respective CTS type. But I am not sure still which I should use?
Let me know your views.
Thanks.
C# native types are compiled to EXACTLY the same IL code as their System.* counterparts.
So
is exactly the same as:
See this question for the complete picture:
C#, int or Int32? Should I care?