C# Data Types
int myNum = 5; // Integer (whole number)
double myDoubleNum = 5.99D; // Floating point number
char myLetter = 'D'; // Character
bool myBool = true; // Boolean
string myText = "Hello"; // String
C# Data Types
int myNum = 5; // Integer (whole number)
double myDoubleNum = 5.99D; // Floating point number
char myLetter = 'D'; // Character
bool myBool = true; // Boolean
string myText = "Hello"; // String
c# value types
// ---------------- Value Type vs Reference Type ----------------------//
// Data types are separated into value types and reference types.
// Value types are either stack-allocated or allocated inline in a structure.
// Reference types are heap-allocated. Both reference and value types are
// derived from the ultimate base class Object
// Aside from serving as the base class for value types in the .NET Framework,
// the ValueType structure is generally not used directly in code. However,
// it can be used as a parameter in method calls to restrict possible
// arguments to value types instead of all objects, or to permit a method to
// handle a number of different value types. ValueType helps prevent reference
// types from being passed to methods.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us