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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:33:08+00:00 2026-05-12T19:33:08+00:00

I read that System.Drawing.Point is a value type. I do not understand. Why?

  • 0

I read that System.Drawing.Point is a value type. I do not understand. Why?

  • 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-12T19:33:08+00:00Added an answer on May 12, 2026 at 7:33 pm

    There are rules that microsoft tries to follow about this, they explain them very well in the MSDN, see Choosing Between Classes and Structures (The book is even better as it had lot of interesting comments)

    Even if Point isn’t a so good sample of this :

    • Struct should logically represents a single value (In this case a position, even if it have 2 components, but Complex numbers could also be separated in 2 parts and they are prime candidates for being structs)
    • Struct should have an instance size smaller than 16 bytes. (Ok, 2×4=8)
    • Struct should not have to be boxed frequently. (Ok this one is right)
    • BUT, Struct should be immutable (Here is the part where they don’t follow their own rules, but i guess that micro-optimization gained over the rules, that anyway were written later)

    As i said i guess that the fact that they haven’t respected the “immutable” part is both because there weren’t rules when System.Drawing was written and for speed as graphic operations could be quite sensitive to this.

    I don’t know if they were right or not to do it, maybe they measured some common algorithms and found that they lost too much performance in allocating temporary object and copying them over. Anyway such optimizations should only be done after carefully measuring real-world usage of the class/struc.

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

Sidebar

Related Questions

I have read that Scala's type system is weakened by Java interoperability and therefore
I read that all the code which constructs Swing components and handles Events must
I am trying to reproduce something that System.Xml.Serialization already does, but for a different
Note that I'm asking about something that will call a callback function more often
I'm using System.Xml.XmlElement as a parameter for sending XML data in WCF. Is this
Suppose I develop an application with the logic as a CLI program that can
I'm creating a simple pie chart with three data points. The first and second
So now I want to make Estonian wordlist ~about 20m unique words in lowercase.
I'm writing C# application which saves picture box screen to JPEG files. One thread
I'm exporting a grid with NPOI v1.2.3, and am having trouble getting cell formatting

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.