C#, quick generics question

c#

Solution

I think you're looking for `System.Drawing.Rectangle` (which is a struct, not a class by the way; there's a class in `System.Windows.Shapes` but that's different.) There's no point in creating a new generic type when what you want is already in the framework.

Problem

I have a need to create a quick class with just 2 properties (left and top), I'll then call these in a collection. Is there a quick way to create the class structure without having to actually create the strongly typed class itself using generics? Thanks in advance Better still, does the framwework have a built in type than can just store left, top, right, bottom co-ordinates in integer values?

Original source