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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:54:57+00:00 2026-06-15T15:54:57+00:00

For specific context, I develop in C#, but I suppose this could be applied

  • 0

For specific context, I develop in C#, but I suppose this could be applied to other languages/frameworks.

I understand that creating a property with a private getter and a public setter is perfectly legal:

public int MyInt { private get; set; }

I’m having trouble figuring out why one would want to allow a client to set a property without being able get its current value. Under what circumstances might this type of behavior desired?

  • 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-06-15T15:54:59+00:00Added an answer on June 15, 2026 at 3:54 pm

    It’s not the ‘client’ which changes the value, it’s other parts of the program.

    It’s possible that you want other objects have the ability to change the state of an object, via that property.
    The other parts of the object don’t care for the state of that object however, it’s kept for internal logic only.

    It all depends on the case and the structure of your application.

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

Sidebar

Related Questions

From an application I need to develop, I've received a specific font that has
I'm designing an editor that will have context-specific actions on two related items, for
We are using Monotouch to develop an application that is specific to the iPad,
I read that context.xml file (in Tomcat) is application specific. I have created two
I'm not a pro with regexp and especially in this specific context. Any idea
I want to remove a specific context menu item, appears when the Mouse down(right)
How can one select a specific sibling of a context node using jQuery? Specifically,
Where could I find out the content type for a specific file format/extension? For
I have no problem to download the content of a specific URL. But I
I am developing an Isolated Shell that caters to designers/special content creators performing specific

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.