Skip to content

Commit e3d2643

Browse files
authored
Merge pull request #951 from dotnet/user/miguep/fixassemblylist
Fixing the list of uncommon assemblies used by AssemblyHelper
2 parents 4731014 + 7044463 commit e3d2643

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/Data/PropertyPathWorker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ void DetermineWhetherDBNullIsValid()
17411741
bool result = false;
17421742
object item = GetItem(Length - 1);
17431743

1744-
if (item != null && AssemblyHelper.IsLoaded(UncommonAssembly.System_Data))
1744+
if (item != null && AssemblyHelper.IsLoaded(UncommonAssembly.System_Data_Common))
17451745
{
17461746
result = DetermineWhetherDBNullIsValid(item);
17471747
}

src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/AssemblyHelper.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@ namespace MS.Internal
3636
internal enum UncommonAssembly
3737
{
3838
// Each enum name must match the assembly name, with dots replaced by underscores
39-
System_Drawing,
40-
System_Xml,
39+
System_Drawing_Common,
4140
System_Private_Xml,
42-
System_Xml_Linq,
4341
System_Private_Xml_Linq,
44-
System_Data,
42+
System_Data_Common,
4543
System_Linq_Expressions,
4644
}
4745

@@ -109,7 +107,7 @@ internal static bool IsLoaded(UncommonAssembly assemblyEnum)
109107
internal static SystemDrawingExtensionMethods ExtensionsForSystemDrawing(bool force=false)
110108
{
111109
if (_systemDrawingExtensionMethods == null &&
112-
(force || IsLoaded(UncommonAssembly.System_Drawing)))
110+
(force || IsLoaded(UncommonAssembly.System_Drawing_Common)))
113111
{
114112
_systemDrawingExtensionMethods = (SystemDrawingExtensionMethods)LoadExtensionFor("SystemDrawing");
115113
}
@@ -127,7 +125,7 @@ internal static SystemDrawingExtensionMethods ExtensionsForSystemDrawing(bool fo
127125
internal static SystemXmlExtensionMethods ExtensionsForSystemXml(bool force=false)
128126
{
129127
if (_systemXmlExtensionMethods == null &&
130-
(force || IsLoaded(UncommonAssembly.System_Xml) || IsLoaded(UncommonAssembly.System_Private_Xml)))
128+
(force || IsLoaded(UncommonAssembly.System_Private_Xml)))
131129
{
132130
_systemXmlExtensionMethods = (SystemXmlExtensionMethods)LoadExtensionFor("SystemXml");
133131
}
@@ -145,7 +143,7 @@ internal static SystemXmlExtensionMethods ExtensionsForSystemXml(bool force=fals
145143
internal static SystemXmlLinqExtensionMethods ExtensionsForSystemXmlLinq(bool force=false)
146144
{
147145
if (_systemXmlLinqExtensionMethods == null &&
148-
(force || IsLoaded(UncommonAssembly.System_Xml_Linq) || IsLoaded(UncommonAssembly.System_Private_Xml_Linq)))
146+
(force || IsLoaded(UncommonAssembly.System_Private_Xml_Linq)))
149147
{
150148
_systemXmlLinqExtensionMethods = (SystemXmlLinqExtensionMethods)LoadExtensionFor("SystemXmlLinq");
151149
}
@@ -163,7 +161,7 @@ internal static SystemXmlLinqExtensionMethods ExtensionsForSystemXmlLinq(bool fo
163161
internal static SystemDataExtensionMethods ExtensionsForSystemData(bool force=false)
164162
{
165163
if (_systemDataExtensionMethods == null &&
166-
(force || IsLoaded(UncommonAssembly.System_Data)))
164+
(force || IsLoaded(UncommonAssembly.System_Data_Common)))
167165
{
168166
_systemDataExtensionMethods = (SystemDataExtensionMethods)LoadExtensionFor("SystemData");
169167
}

0 commit comments

Comments
 (0)