EloiStree / HelloSharpForUnity3D

Here we are going to check all the basic need to work in Unity3D with C#
0 stars 0 forks source link

Keyword: Primitive Variable #416

Open EloiStree opened 2 months ago

EloiStree commented 2 months ago

image

https://www.youtube.com/watch?v=PZRI1IfStY0

image

🤖 In C#, the term "primitive value" generally refers to the basic data types that are predefined by the language. These types are value types (as opposed to reference types) and are stored directly on the stack. Here is a list of the primitive value types in C#:

  1. Integral Types:

    • byte : 8-bit unsigned integer
    • sbyte : 8-bit signed integer
    • short : 16-bit signed integer
    • ushort : 16-bit unsigned integer
    • int : 32-bit signed integer
    • uint : 32-bit unsigned integer
    • long : 64-bit signed integer
    • ulong : 64-bit unsigned integer
    • char : 16-bit Unicode character
  2. Floating-Point Types:

    • float : 32-bit floating-point number
    • double : 64-bit floating-point number
  3. Decimal Type:

    • decimal : 128-bit precise decimal value for financial and monetary calculations
  4. Boolean Type:

    • bool : Represents a Boolean value, either true or false
  5. Other Types:

    • void : Represents the absence of a type (used mainly as a return type for methods that do not return a value)

Note:

These primitive types are the building blocks for creating more complex data structures in C#.