public DummyOEIResourceManager()
{
//
// Set up the instance field to keep OEIShared happy. It has been
// obfuscated so the name is destroyed. Pick it out by looking for
// the field characteristics via Reflection.
//
if (Instance == null)
{
FieldInfo InstanceField = (from FieldType in typeof(OEIShared.IO.ResourceManager).GetFields()
where FieldType == typeof(OEIShared.IO.ResourceManager) &&
FieldType.IsStatic &&
FieldType.IsPrivate
select FieldType).FirstOrDefault();
if (InstanceField == null)
throw new ApplicationException("Couldn't find ResourceManager instance field.");
InstanceField.SetValue(this, this);
}
}