'Is there an integer-based version of System.Windows.Size anywhere in .NET?

I feel silly asking such a basic question after so long using .NET but I cannot find anything in the docs.

Is there any sort of integer-based analog to the System.Windows.Size struct that is standard in .NET? Something that holds integers instead of doubles?

Obviously I can

  • roll my own
  • pass integer width/height sizes separately
  • pass System.Windows.Size and cast back and forth.

But I am surprised I cannot find something so fundamental already defined. If it exists, I would prefer to use that.



Solution 1:[1]

System.Drawing.Size uses int32 for the height and width properties.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 John V