I recently created a Rectangle struct. Another struct with the same name exists in XNA.
How can I tell the program to use my struct over the built-in one without a name collision?
I also want to still be able to use the built-in one (for a construct to take a normal Rectangle and translate it into mine).
Just fully qualify the type. For example, if your root namespace is
MyProject, useMyProject.Rectangle. I don’t know whatRectangleis in XNA, but one full qualification of aRectanglestructure isSystem.Drawing.Rectangle.