@@ -79,10 +79,10 @@ internal BamlMapTable(XamlTypeMapper xamlTypeMapper)
79
79
_xamlTypeMapper = xamlTypeMapper ;
80
80
81
81
// Setup the assembly record for the known types of controls
82
- KnownAssemblyInfoRecord = new BamlAssemblyInfoRecord ( ) ;
83
- KnownAssemblyInfoRecord . AssemblyId = - 1 ;
84
- KnownAssemblyInfoRecord . Assembly = ReflectionHelper . LoadAssembly ( _frameworkAssembly , string . Empty ) ;
85
- KnownAssemblyInfoRecord . AssemblyFullName = KnownAssemblyInfoRecord . Assembly . FullName ;
82
+ _knownAssemblyInfoRecord = new BamlAssemblyInfoRecord ( ) ;
83
+ _knownAssemblyInfoRecord . AssemblyId = - 1 ;
84
+ _knownAssemblyInfoRecord . Assembly = ReflectionHelper . LoadAssembly ( _frameworkAssembly , string . Empty ) ;
85
+ _knownAssemblyInfoRecord . AssemblyFullName = _knownAssemblyInfoRecord . Assembly . FullName ;
86
86
}
87
87
88
88
#endregion Constructor
@@ -995,7 +995,7 @@ internal BamlAssemblyInfoRecord GetAssemblyInfoFromId(short id)
995
995
// case return the known assembly info record.
996
996
if ( id == - 1 )
997
997
{
998
- return KnownAssemblyInfoRecord ;
998
+ return _knownAssemblyInfoRecord ;
999
999
}
1000
1000
else
1001
1001
{
@@ -1803,7 +1803,6 @@ private Hashtable ConverterCache
1803
1803
1804
1804
private const string _coreAssembly = "PresentationCore" ;
1805
1805
private const string _frameworkAssembly = "PresentationFramework" ;
1806
- private static BamlAssemblyInfoRecord KnownAssemblyInfoRecord ;
1807
1806
1808
1807
private static string [ ] _knownStrings =
1809
1808
{
@@ -1830,6 +1829,9 @@ private Hashtable ConverterCache
1830
1829
// XamlTypeMapper associated with this map table. There is always a one-to-one correspondence.
1831
1830
XamlTypeMapper _xamlTypeMapper ;
1832
1831
1832
+ // The assembly record for the known types of controls
1833
+ BamlAssemblyInfoRecord _knownAssemblyInfoRecord ;
1834
+
1833
1835
#if ! PBTCOMPILER
1834
1836
// Temporary cache of Known Type Converters for each baml reading session.
1835
1837
Hashtable _converterCache = null ;
0 commit comments