I think the C # syntax for extern is much more limited or even radically different from the C ++ world.
http://msdn.microsoft.com/en-US/library/e59b22c5(v=VS.80).aspx
.
Perhaps what you really want to implement is a singleton or static member of a class?
namespace Sample
{
public class GlobalLists
{
public static List<SomeObject> SomeGlobalObjects;
}
}
You can then reference the list above as
GlobalLists.SomeGlobalObjects
the rest of the code ...
source
share