Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. primitive data types in .NET

primitive data types in .NET

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nsainaveen
    wrote on last edited by
    #1

    hi, I have doubt regarding primitive datatypes in .NET.I studied that int,short,bool are primitive types.And one more thing i knew is every thing in .NET is classes & Objects. So how these primitive types exists.Is there any primitive types in .NET or not. I will be very happy if any body gives detail explanation for this. Thanks & Regards, Naveen.

    K S H 3 Replies Last reply
    0
    • N nsainaveen

      hi, I have doubt regarding primitive datatypes in .NET.I studied that int,short,bool are primitive types.And one more thing i knew is every thing in .NET is classes & Objects. So how these primitive types exists.Is there any primitive types in .NET or not. I will be very happy if any body gives detail explanation for this. Thanks & Regards, Naveen.

      K Offline
      K Offline
      Kodanda Pani
      wrote on last edited by
      #2

      Hi, In .Net primitive types are indentified through keywords like Byte, int. These are the aliases from the Types that are defined in System namespace. Thanks SGS

      1 Reply Last reply
      0
      • N nsainaveen

        hi, I have doubt regarding primitive datatypes in .NET.I studied that int,short,bool are primitive types.And one more thing i knew is every thing in .NET is classes & Objects. So how these primitive types exists.Is there any primitive types in .NET or not. I will be very happy if any body gives detail explanation for this. Thanks & Regards, Naveen.

        S Offline
        S Offline
        S Senthil Kumar
        wrote on last edited by
        #3

        .NET does have primitive data types like int, short, long, float, double, char, bool, string... All primitive data types, except string, are value types (structs). Regards Senthil _____________________________ My Blog | My Articles | WinMacro

        1 Reply Last reply
        0
        • N nsainaveen

          hi, I have doubt regarding primitive datatypes in .NET.I studied that int,short,bool are primitive types.And one more thing i knew is every thing in .NET is classes & Objects. So how these primitive types exists.Is there any primitive types in .NET or not. I will be very happy if any body gives detail explanation for this. Thanks & Regards, Naveen.

          H Offline
          H Offline
          hauptman
          wrote on last edited by
          #4

          I would say that .net doesn't have any primitive types but the languages can have. I come to this conclusion as in the Visual Basic specification(point 7.3) stands: "The primitive types are identified through keywords, which are aliases for predefined types in the System namespace." http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbls7/html/vblrfvbspec6\_2.asp So for the framework there are no primitive types just value types and reference types but for languages there can exists primitive types.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups