Maybe it would have been a cool Idea to actually create an attribute to your Map definition of Unofficial and Official then you could actually create separate collections for them.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I enjoyed so much reading your 39map code. I had to build something so similar two days ago.
I wish I read this just 2 days ago, would have saved me a full day. I ran into a very weird problem and I will fit it into your example.
I already had my types collected via reflection and I continued smt like
foreach( t in types)
{
ICustomMap map = (ICustomMap) Activator.CreateInstance(t));
if (map.ID != "notOfficial")
mapsCollection.add(map);
//what happened to my surprise, map.ID didn't return map.ID of the instance but instead that of the base class "NULL"
//outside of the loop, if I loop the mapsCollection, map.ID shows the proper ID
}
Maybe it would have been a cool Idea to actually create an attribute to your Map definition of Unofficial and Official then you could actually create separate collections for them.