KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I see this Array.ConvertAll method, but it requires a Converter as an argument. I don't see why I need a converter, when I've already defined an implicit one in my class: public static implicit operator Vec2(PointF p) { return new Vec2(p.X, p.Y); } I'm trying to cast an array of PointF s to an array of Vec2 s. Is there a nice way to do this? Or should I just suck it up and write (another) converter or loop over the elements?
Tags (comma-separated)
Save Edits
Cancel