Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have:
- public struct IntPoint
- {
- public long X;
- public long Y;
- ....
- }
- Which is part of another library (that I should not change).
- I want to make a 'generic' class that would be able to handle arguments of both the above mentioned struct and System.Drawing.PointF. Like:
- class SomeClass<T> where T : "something something IntPoint Or The Other One, PointF" << I know I can't do this in this manner
- {
- private T p;
- void SomethingSomething(T q) { p = q; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement