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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:28:46+00:00 2026-06-09T17:28:46+00:00

I was just reviewing some code and noticed someone had marked member as readonly

  • 0

I was just reviewing some code and noticed someone had marked member as readonly private. Is this different from private readonly in any way?

Example:

readonly private MyClass myInstance = new MyClass();

I have never seen this before. I always use private then readonly. I could not find anything on MSDN (or even in the C# spec.) that mentions what order the access modifiers can appear in. Is there an article / reference somewhere?

  • 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-09T17:28:48+00:00Added an answer on June 9, 2026 at 5:28 pm

    No, there is no difference. Another common time this happens is public static vs static public In either case, some people might argue it’s more important to have the access modifier first, while others would argue it’s more important the ‘special’ modifiers be seen.

    But no, it doesn’t make any difference at all and it’s purely a style choice.

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

Sidebar

Related Questions

After some help and reviewing of the code I got this working without any
I was just putting some thought into different languages (as I'm reviewing for final
I was recently reviewing some code written by two different contractors, both were basic
I was reviewing some of my old code and came across this syntax: extractDir=${downloadFileName%.*}-tmp
I was just reviewing some old code and found the following (inside foo.asp): Const
I'm just reviewing some of my old code (have some spare time), and I
I am just reviewing some code I wrote to communicate with the serial port
I was just reviewing one of my client's applications which uses some old outdated
Just see this: SELECT clientid,clientname,startdate,enddate,age FROM clients WHERE clientid IN (1,2,3,4,5) AND CASE WHEN
I'm reviewing some legacy code and I've found a bug that causes the response

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.