Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# .NET .NET4
Hii,everyone i'm beginner
what is the different between data type in c# and in .net framework ??
who can i used??
Posted 17-Apr-13 8:22am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
ProgramFOX at 17-Apr-13 14:19pm
   
+5!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  
v2
Comments
Dave Kreskowiak at 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 at 17-Apr-13 13:44pm
   
Ah! Thanks, it totally skipped my mind.
 
Thanks again.
ProgramFOX at 17-Apr-13 14:19pm
   
+5!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

kindly visit following URL
 
you ll get what you need
 

DataType-Dotnet-C-Sharp
  Permalink  

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

  Print Answers RSS
0 Marcin Kozub 275
1 OriginalGriff 264
2 Sergey Alexandrovich Kryukov 215
3 Praneet Nadkar 197
4 Richard MacCutchan 182
0 OriginalGriff 8,048
1 Sergey Alexandrovich Kryukov 7,287
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,910


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 17 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100