Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6940445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:45:12+00:00 2026-05-27T12:45:12+00:00

I see many times using native and literals keywords in C# articles. What do

  • 0

I see many times using native and literals “keywords” in C# articles. What do they mean?

examples:

string.Empty article:

The Empty constant holds the empty string value. We need to call the
String constructor so that the compiler doesn’t mark this as a
literal. Marking this as a literal would mean that it doesn’t show up
as a field which we can access from native.

C# vs Java Wikipedia article:

Simple/primitive types
Both languages support a number of built-in
types which are copied and passed by value rather than by reference.
Java calls these types primitive types, while they are called simple
types in C#. The simple/primitive types typically have native support
from the underlying processor architecture.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:45:13+00:00Added an answer on May 27, 2026 at 12:45 pm

    From the C# spec section 2.4.4:

    A literal is a source code representation of a value.

    So for example there are literals for strings and numbers:

    string x = "hello";
    int y = 10;
    

    … but C# has no literal syntax for dates and times; you’d have to use:

    DateTime dt = new DateTime(2011, 12, 11);
    

    As for native support – there are different levels of “native” here, but as far as C# is concerned, I’d usually consider it type-specific support in whatever output format is used. So for example, there are IL instructions to deal with the binary floating point types (float, double) but when the C# compiler emits code dealing with decimal values, it has to call the operators declared in System.Decimal. I’d therefore consider that float and double have native support in IL, but decimal doesn’t.

    (It would be possible to write a C# compiler targeting a different platform which did have native support for decimal – or which didn’t have native support for float and double, for example. Unlikely, but possible.)

    Then when the IL is being run in an execution engine, that will be running on top of “real” native code – x86 for example – which can have specific support for certain types. That’s another level of “native”. For example, if someone came up with a new version of IL which included native support for decimal, that wouldn’t mean that the CPUs themselves suddenly gained native support.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Many times I see statements like following Y.CustomApp.superclass.render.apply(this, arguments); I know how apply works.
Many times when I read books related to CSS I see things like this
I see that this has been asked many times. But, unfortunately I have not
I see many, many sites that have URLs for individual pages such as http://www.mysite.com/articles/this-is-article-1
I see many questions and answers about using C# to generate PDF files. I
I can see this question has been asked many times before, but I just
I see many user interface control libraries for .NET, but where can I get
I see many similar questions, however I want to find the Username of the
I see many methods that specify an interface as return value. Is my thought
I see many Java packages have api, impl and bundle jars (name-api.jar, name-impl.jar, name-bundle.jar).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.