overload native function
-
-
Is it possible to overload a function from VS2005 IDE? If so, I want to overload graphics.drawline() which signature in CF is drawline(pen, int x1, int y1, int x2, int y2). I want to change it to drawline (pen, point A, point B). Any help?
Donkaiser
-
er, that overload already exists! (in class System.Drawing.Graphics)
public void DrawLine ( System.Drawing.Pen pen , System.Drawing.Point pt1 , System.Drawing.Point pt2 )
-
Sorry! it's for CF. this overload is missing. But my point is to see if it's possible to overload IDE methods.
Whats an IDE method? Either 2.0 or 3.0 ( idk which ) has a method for adding additional methods to a class. If you do a web search for new features of the two it can direct you. If those are not available the pattern is a wrapper class.
A man said to the universe: "Sir I exist!" "However," replied the Universe, "The fact has not created in me A sense of obligation." -- Stephen Crane
-
Whats an IDE method? Either 2.0 or 3.0 ( idk which ) has a method for adding additional methods to a class. If you do a web search for new features of the two it can direct you. If those are not available the pattern is a wrapper class.
A man said to the universe: "Sir I exist!" "However," replied the Universe, "The fact has not created in me A sense of obligation." -- Stephen Crane
-
Its extension methods and I think it is in 3 only. Looks like you need a wrapper class.
A man said to the universe: "Sir I exist!" "However," replied the Universe, "The fact has not created in me A sense of obligation." -- Stephen Crane
-
Its extension methods and I think it is in 3 only. Looks like you need a wrapper class.
A man said to the universe: "Sir I exist!" "However," replied the Universe, "The fact has not created in me A sense of obligation." -- Stephen Crane