@@ -36,12 +36,10 @@ namespace MS.Internal
36
36
internal enum UncommonAssembly
37
37
{
38
38
// Each enum name must match the assembly name, with dots replaced by underscores
39
- System_Drawing ,
40
- System_Xml ,
39
+ System_Drawing_Common ,
41
40
System_Private_Xml ,
42
- System_Xml_Linq ,
43
41
System_Private_Xml_Linq ,
44
- System_Data ,
42
+ System_Data_Common ,
45
43
System_Linq_Expressions ,
46
44
}
47
45
@@ -109,7 +107,7 @@ internal static bool IsLoaded(UncommonAssembly assemblyEnum)
109
107
internal static SystemDrawingExtensionMethods ExtensionsForSystemDrawing ( bool force = false )
110
108
{
111
109
if ( _systemDrawingExtensionMethods == null &&
112
- ( force || IsLoaded ( UncommonAssembly . System_Drawing ) ) )
110
+ ( force || IsLoaded ( UncommonAssembly . System_Drawing_Common ) ) )
113
111
{
114
112
_systemDrawingExtensionMethods = ( SystemDrawingExtensionMethods ) LoadExtensionFor ( "SystemDrawing" ) ;
115
113
}
@@ -127,7 +125,7 @@ internal static SystemDrawingExtensionMethods ExtensionsForSystemDrawing(bool fo
127
125
internal static SystemXmlExtensionMethods ExtensionsForSystemXml ( bool force = false )
128
126
{
129
127
if ( _systemXmlExtensionMethods == null &&
130
- ( force || IsLoaded ( UncommonAssembly . System_Xml ) || IsLoaded ( UncommonAssembly . System_Private_Xml ) ) )
128
+ ( force || IsLoaded ( UncommonAssembly . System_Private_Xml ) ) )
131
129
{
132
130
_systemXmlExtensionMethods = ( SystemXmlExtensionMethods ) LoadExtensionFor ( "SystemXml" ) ;
133
131
}
@@ -145,7 +143,7 @@ internal static SystemXmlExtensionMethods ExtensionsForSystemXml(bool force=fals
145
143
internal static SystemXmlLinqExtensionMethods ExtensionsForSystemXmlLinq ( bool force = false )
146
144
{
147
145
if ( _systemXmlLinqExtensionMethods == null &&
148
- ( force || IsLoaded ( UncommonAssembly . System_Xml_Linq ) || IsLoaded ( UncommonAssembly . System_Private_Xml_Linq ) ) )
146
+ ( force || IsLoaded ( UncommonAssembly . System_Private_Xml_Linq ) ) )
149
147
{
150
148
_systemXmlLinqExtensionMethods = ( SystemXmlLinqExtensionMethods ) LoadExtensionFor ( "SystemXmlLinq" ) ;
151
149
}
@@ -163,7 +161,7 @@ internal static SystemXmlLinqExtensionMethods ExtensionsForSystemXmlLinq(bool fo
163
161
internal static SystemDataExtensionMethods ExtensionsForSystemData ( bool force = false )
164
162
{
165
163
if ( _systemDataExtensionMethods == null &&
166
- ( force || IsLoaded ( UncommonAssembly . System_Data ) ) )
164
+ ( force || IsLoaded ( UncommonAssembly . System_Data_Common ) ) )
167
165
{
168
166
_systemDataExtensionMethods = ( SystemDataExtensionMethods ) LoadExtensionFor ( "SystemData" ) ;
169
167
}
0 commit comments