Difference between revisions of "C Sharp Data Types"

esse quam videri
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
=Definition=
 +
 +
=Relevance=
 +
 +
=Explanation=
 +
 +
 
C# Built-In Data Types
 
C# Built-In Data Types
  
 
Type Range
 
Type Range
  
byte 0 .. 255
+
[[byte|byte]] 0 .. 255
 +
 
 +
[[sbyte|sbyte]] -128 .. 127
 +
 
 +
[[short|short]] -32,768 .. 32,767
 +
 
 +
[[ushort|ushort]] 0 .. 65,535
 +
 
 +
[[Integer|int]] -2,147,483,648 .. 2,147,483,647
 +
 
 +
[[uint|uint]] 0 .. 4,294,967,295
 +
 
 +
[[long|long]] -9,223,372,036,854,775,808 .. 9,223,372,036,854,775,807
 +
 
 +
[[ulong|ulong]] 0 .. 18,446,744,073,709,551,615
  
sbyte -128 .. 127
+
[[Floating Point Number|float]] -3.402823e38 .. 3.402823e38
  
short -32,768 .. 32,767
+
[[double|double]] -1.79769313486232e308 .. 1.79769313486232e308
  
ushort 0 .. 65,535
+
[[decimal|decimal]] -79228162514264337593543950335 .. 79228162514264337593543950335
  
int -2,147,483,648 .. 2,147,483,647
+
[[Character|char]] A Unicode character
  
uint 0 .. 4,294,967,295
+
[[string|string]] A string of Unicode characters
  
long -9,223,372,036,854,775,808 .. 9,223,372,036,854,775,807
+
[[Boolean|bool]] True or False
  
ulong 0 .. 18,446,744,073,709,551,615
+
[[object|object]] An object
  
float -3.402823e38 .. 3.402823e38
+
=Resources=
 +
== See also ==
 +
* [[Memory]]
 +
* [[Data Type]]
 +
* [[SQL Data Types]]
 +
* [[.NET Data Types]]
  
double -1.79769313486232e308 .. 1.79769313486232e308
+
==Notes==
  
decimal -79228162514264337593543950335 .. 79228162514264337593543950335
 
  
char A Unicode character.
+
==External Links==
  
string A string of Unicode characters.
 
  
bool True or False.
 
  
object An object.
+
[[Category:Programming Language Concepts]]
 +
[[Category:Object Oriented Programming]]
 +
[[Category:C Sharp]]

Latest revision as of 00:26, 8 June 2019

Definition

Relevance

Explanation

C# Built-In Data Types

Type Range

byte 0 .. 255

sbyte -128 .. 127

short -32,768 .. 32,767

ushort 0 .. 65,535

int -2,147,483,648 .. 2,147,483,647

uint 0 .. 4,294,967,295

long -9,223,372,036,854,775,808 .. 9,223,372,036,854,775,807

ulong 0 .. 18,446,744,073,709,551,615

float -3.402823e38 .. 3.402823e38

double -1.79769313486232e308 .. 1.79769313486232e308

decimal -79228162514264337593543950335 .. 79228162514264337593543950335

char A Unicode character

string A string of Unicode characters

bool True or False

object An object

Resources

See also

Notes

External Links