You've already forked linux-packaging-mono
Imported Upstream version 4.2.0.179
Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
This commit is contained in:
committed by
Jo Shields
parent
183bba2c9a
commit
6992685b86
@@ -150,15 +150,22 @@ namespace System.Xml.Serialization
|
||||
}
|
||||
#endif
|
||||
deleteTempFiles = (db == null || db == "no");
|
||||
#if !NET_2_1
|
||||
IDictionary table = (IDictionary) ConfigurationSettings.GetConfig("system.diagnostics");
|
||||
#if !NET_2_1 && CONFIGURATION_DEP
|
||||
// DiagnosticsSection
|
||||
ConfigurationSection table = (ConfigurationSection) ConfigurationSettings.GetConfig("system.diagnostics");
|
||||
var bf = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance;
|
||||
if (table != null)
|
||||
{
|
||||
table = (IDictionary) table["switches"];
|
||||
if (table != null)
|
||||
{
|
||||
string val = (string) table ["XmlSerialization.Compilation"];
|
||||
if (val == "1") deleteTempFiles = false;
|
||||
// SwitchElementsCollection
|
||||
var pi = table.GetType ().GetProperty ("Switches", bf);
|
||||
var switchesElement = (ConfigurationElementCollection) pi.GetValue (table, null);
|
||||
foreach (ConfigurationElement e in switchesElement) {
|
||||
// SwitchElement
|
||||
if (e.GetType ().GetProperty ("Name", bf).GetValue (e, null) as string == "XmlSerialization.Compilation") {
|
||||
if (e.GetType ().GetProperty ("Value", bf).GetValue (e, null) as string == "1")
|
||||
deleteTempFiles = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user