.Net Framework Reflection compatibility fix.