There is more then one Point class
Posted
by Dmitry
on Stack Overflow
See other posts from Stack Overflow
or by Dmitry
Published on 2010-05-20T15:27:34Z
Indexed on
2010/05/20
15:30 UTC
Read the original article
Hit count: 182
wpf
Today I hit something very annoying while working with one of my colleagues. It seems there are two Point classes in .NET and by mistake we were trying for a good few minutes to figure out why our "Point(x,y)" wouldn’t take double, but only Int. Turns out we were using the wrong one since the XAML element in question needed the version with Double.
So, based on what you actually want to do, make sure you’re using the right namespace.
Please see below for MSDN reference links for each namespace version of Point, hope this saves you some time.
© Stack Overflow or respective owner