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 7045925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:35:22+00:00 2026-05-28T02:35:22+00:00

in web application, i am trying to declare property, i found in some of

  • 0

in web application, i am trying to declare property, i found in some of blogs that they declare property like this :

 public System.Nullable<DateTime> LoginDateTime { get; set; }

what is the meaning of the above property.

  • 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-28T02:35:23+00:00Added an answer on May 28, 2026 at 2:35 am

    This is called an auto-implemented property.

    In C# 3.0 and later, auto-implemented properties make
    property-declaration more concise when no additional logic is required
    in the property accessors. They also enable client code to create
    objects. When you declare a property as shown in the following
    example, the compiler creates a private, anonymous backing field that
    can only be accessed through the property’s get and set accessors.

    The compiler will transform this code into something like:

    private System.Nullable<DateTime> xxx;
    public System.Nullable<DateTime> LoginDateTime
    { 
        get
        {
            return xxx;
        }
        set
        {
            xxx = value;
        }
    }
    

    The “generated” code is then called a property:

    A property is a member that provides a flexible mechanism to read,
    write, or compute the value of a private field. Properties can be used
    as if they are public data members, but they are actually special
    methods called accessors. This enables data to be accessed easily and
    still helps promote the safety and flexibility of methods.


    About System.Nullable<>

    Value type cannot have a null value (compared to reference types). The use of System.Nullable<> allows representing the correct range of values for its underlying value type, plus an additional null value.

    Another notation to System.Nullable<DateTime> is DateTime?

    Nullable Types (C# Programming Guide)

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

Sidebar

Related Questions

I have a web application that have standard form authentication declared, like this: <login-config>
I hit this error while my web application was trying to execute a SELECT
I'm trying to write a web application using SpringMVC. Normally I'd just map some
I am trying to debug a web application through IIS that has a virtual
I'm trying to write a web application in ASP.NET MVC that allows each user
I'm trying to develop a web application that dispatch (Dispatcher) to multiple versions of
I'm trying to develop a web application that is going to be launched from
i like to build web application and im trying to think about way to
I am trying to build a web application that requires users to register themselves.
I am trying to write some javascript functions for a web application. Following the

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.