Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
1.75/5 (3 votes)
See more:
Hii,everyone i'm beginner
what is the different between data type in c# and in .net framework ??
who can i used??
Posted

kindly visit following URL

you ll get what you need


DataType-Dotnet-C-Sharp
 
Share this answer
 
In current question context:

data type in c# and in .net framework
C# is a language and .NET a framework.
DataTyes are in language and not in framework.
As Dave shared, C# datatypes are aliases for .NET types.

The two are not seperable. For example, the int type is merely an alias for System.Int32, which derives from System.ValueType.

Based on above, nothing to compare. Use C# any datatype as per your application need.
 
Share this answer
 
v2
Comments
Dave Kreskowiak 17-Apr-13 13:42pm    
DataTyes are in language and not in framework. Hold on there Tex! That's not exactly true. C# datatypes are aliases for .NET types. The two are not seperable. For example, the int type is merely an alias for System.Int32, which derives from System.ValueType.

Directly from MSDN: All of the simple types -- those integral to the C# language -- are aliases of the .NET Framework System types. For example, int is an alias of System.Int32. For a complete list of aliases, see Built-In Types Table (C# Reference).
Sandeep Mewara 17-Apr-13 13:44pm    
Ah! Thanks, it totally skipped my mind.

Thanks again.
Thomas Daniels 17-Apr-13 14:19pm    
+5!
Your question doesn't make any sense as all the datatypes in C# come from the .NET Framework. C# may have aliases for them, such as string (C#) = System.String (.NET), but there are no differences between them at all.
 
Share this answer
 
Comments
Thomas Daniels 17-Apr-13 14:19pm    
+5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900