Search code examples
c#uwpwindows-store-appswin-universal-app

Is there a Type to denote two 'int's in UWP?


I need a pair of ints to denote a point. But UWP's Point uses floats.

Is there some type of built in pair of ints so I don't have to create a custom one? If it's Height and Width that's fine. Just as long as it's two ints.


Solution

  • If all you need is a single object with the two int values you can use Tuple<int, int>: https://learn.microsoft.com/en-us/dotnet/api/system.tuple-2.