Hi, please, could someone explain me why the same WinRT type doesn't have the same representation between C++ and C# ?
I guess the C# struct is a kind of wrapper over the WinRT type but why the C# properties are of type Double while the underlyng native fields are of type Float ?
// c++/cx component method :
void Graphics::DoSomething( Windows::Foundation::Rect r, Windows::Foundation::Point p );
// c++ client code.
Windows::Foundation::Rect r;
r.Width = 1.0; // Width is a field of type Float.
Windows::Foundation::Point p;
p.X = 1.0; // X is a field of type Float.
m_gfx->DoSomething( r, p );
// c# client code.
Windows.Foundation.Rect r;
r.Width = 1.0; // Width is a property of type Double.
Windows.Foundation.Point p;
p.X = 1.0; // X is a property of type Double.
m_gfx.DoSomething( r, p );