2 writes to _context
PresentationFramework (2)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
114_context = new Baml2006ReaderContext(schemaContext); 220_context = null;
165 references to _context
PresentationFramework (165)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (165)
131_context.TemplateStartDepth = -1; 231get { return _context.CurrentFrame != null; } 236get { return _context.LineNumber; } 241get { return _context.LineOffset; } 250_context.KeyList = new List<KeyRecord>(); 251_context.CurrentFrame.IsDeferredContent = true; 321foreach (KeyRecord keyRecord in _context.KeyList) 334return _context.KeyList; 348_context.CurrentKey = _context.KeyList.IndexOf(record); 375Baml2006ReaderFrame baseFrame = _context.CurrentFrame; 378while (baseFrame != _context.CurrentFrame) 390_context.CurrentKey = _context.KeyList.IndexOf(record); 713string name = _context.SchemaContext.GetString(_binaryReader.ReadInt16()); 715if (_context.TemplateStartDepth < 0) 737bool shouldInjectContentProperty = _context.CurrentFrame.Member == null; 741if (_context.CurrentFrame.XamlType.ContentProperty != null) 745_xamlNodesWriter.WriteStartMember(_context.CurrentFrame.XamlType.ContentProperty); 783bool shouldDropProperty = _context.CurrentFrame.Member == null; 807_context.InsideStaticResource = false; 810_context.PopScope(); 819_context.LastKey.StaticResources.Add(staticResource); 820_context.InsideStaticResource = true; 825_context.PushScope(); 826_context.CurrentFrame.XamlType = type; 831InjectPropertyAndFrameIfNeeded(_context.SchemaContext.GetXamlType(typeof(StaticResourceExtension)), 0); 834object value = _context.KeyList[_context.CurrentKey - 1].StaticResources[resourceId]; 901optimizedStaticResource.KeyValue = _context.SchemaContext.GetString(keyId); 905var staticResources = _context.LastKey.StaticResources; 938_context.KeyList = new List<KeyRecord>(); 939_context.CurrentKey = 0; 940_context.CurrentFrame.IsDeferredContent = true; 954_context.CurrentFrame.Key = new KeyRecord(false, false, 0, value); 973string value = _context.SchemaContext.GetString(keyStringId); 976if (_context.CurrentFrame.IsDeferredContent) 978_context.KeyList.Add(key); 982_context.CurrentFrame.Key = key; 1000if (_context.CurrentFrame.IsDeferredContent) 1002_context.KeyList.Add(key); 1006_context.CurrentFrame.Key = key; 1041if (_context.InsideKeyRecord != true && _context.InsideStaticResource != true) 1043InjectPropertyAndFrameIfNeeded(_context.SchemaContext.GetXamlType(typeof(String)), 0); 1051_context.CurrentFrame.Member != XamlLanguage.PositionalParameters) 1053if (_context.CurrentFrame.XamlType != null && _context.CurrentFrame.XamlType.IsCollection) 1055if (!_context.CurrentFrame.XamlType.IsWhitespaceSignificantCollection) 1062if (_context.CurrentFrame.Member.Type != null && 1063!_context.CurrentFrame.Member.Type.UnderlyingType.IsAssignableFrom(typeof(String))) 1074_context.CurrentFrame.Member = null; 1082_context.CurrentFrame.Member = XamlLanguage.PositionalParameters; 1134if (_root != null && _context.CurrentFrame.Depth == 0) 1152_context.PushScope(); 1153_context.CurrentFrame.XamlType = type; 1192_xamlNodesWriter.WriteStartObject(_context.CurrentFrame.XamlType); 1196if (_context.CurrentFrame.Depth == 1) 1207if (_context.PreviousFrame.IsDeferredContent && _context.InsideStaticResource == false) 1215KeyRecord record = _context.KeyList[_context.CurrentKey]; 1238_context.CurrentKey++; 1246if (_context.CurrentFrame.Key != null) 1250KeyRecord keyRecord = _context.CurrentFrame.Key; 1277_context.CurrentFrame.Key = null; 1280if (_context.CurrentFrame.DelayedConnectionId != -1) 1285_xamlNodesWriter.WriteValue(_context.CurrentFrame.DelayedConnectionId); 1289_xamlNodesWriter.WriteValue(_context.CurrentFrame.DelayedConnectionId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS)); 1296if (_context.CurrentFrame.IsDeferredContent) 1298_context.KeyList = null; 1300_context.PopScope(); 1311XamlType type = _context.SchemaContext.GetXamlType(typeId); 1313_context.PushScope(); 1314_context.CurrentFrame.XamlType = type; 1318KeyRecord key = new KeyRecord(isShared, isSharedSet, valuePosition, _context.SchemaContext) 1325_context.InsideKeyRecord = true; 1332if (_context.PreviousFrame.IsDeferredContent) 1334_context.KeyList.Add(key); 1338_context.PreviousFrame.Key = key; 1346if (_context.PreviousFrame.IsDeferredContent) 1348key = _context.LastKey; 1352key = _context.PreviousFrame.Key; 1360_context.InsideKeyRecord = false; 1362_context.PopScope(); 1373if (_context.CurrentFrame.XamlType.UnderlyingType == typeof(EventSetter)) 1376_xamlNodesWriter.WriteStartMember(_context.SchemaContext.EventSetterEventProperty); 1393_xamlNodesWriter.WriteStartMember(_context.SchemaContext.EventSetterHandlerProperty); 1399XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1408if (_context.InsideKeyRecord || _context.InsideStaticResource) 1416if (_context.CurrentFrame.XamlType == null) 1422if (_context.CurrentFrame.Member != null) 1424throw new XamlParseException(SR.Format(SR.PropertyOutOfOrder, _context.CurrentFrame.Member)); 1499XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1516serializerTypeId, property, _context.CurrentFrame.XamlType)); 1532converter = new EnumConverter(_context.CurrentFrame.XamlType.UnderlyingType); 1578XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1640XamlMember property = GetProperty(propertyId, _context.CurrentFrame.XamlType); 1691param = _context.SchemaContext.GetDependencyProperty(valueId); 1857XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1887XamlMember property = _context.SchemaContext.GetProperty(propertyId, _context.CurrentFrame.XamlType); 1895Object resource = _context.KeyList[_context.CurrentKey - 1].StaticResources[resourceId]; 1957string text = _context.SchemaContext.GetString(optimizedResource.KeyId); 1977XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1979_context.CurrentFrame.Member = property; 1988XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1990_context.CurrentFrame.Member = property; 1998XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 2000_context.CurrentFrame.Member = property; 2008_context.CurrentFrame.Member = null; 2016if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth == _context.CurrentFrame.Depth) 2023_context.CurrentFrame.Member = null; 2035Baml2006ReaderFrame currentFrame = _context.CurrentFrame; 2117Debug.Assert(_context.CurrentFrame.XamlType != null, "BAML Xmlns record is only legal between ElementStart and ElementEnd"); 2125_context.CurrentFrame.AddNamespace(prefix, xamlNs); 2155_context.LineOffset = _binaryReader.ReadInt32(); 2158consumer?.SetLineInfo(_context.LineNumber, _context.LineOffset); 2164_context.LineNumber = _binaryReader.ReadInt32(); 2165_context.LineOffset = _binaryReader.ReadInt32(); 2168consumer?.SetLineInfo(_context.LineNumber, _context.LineOffset); 2246_context.CurrentFrame.ContentProperty = contentProperty; 2254if (_context.CurrentFrame.Member != null) 2259Baml2006ReaderFrame frame = _context.CurrentFrame; 2262frame = _context.PreviousFrame; 2316if (_context.CurrentFrame.Flags == Baml2006ReaderFrameFlags.IsImplict) 2321_context.PopScope(); 2324if (_context.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty) 2327if (_context.CurrentFrame.Depth == _context.TemplateStartDepth) 2335_context.TemplateStartDepth = -1; 2340_context.CurrentFrame.Member = null; 2341_context.CurrentFrame.Flags = Baml2006ReaderFrameFlags.None; 2349if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth == _context.CurrentFrame.Depth) 2354XamlType parentType = _context.CurrentFrame.XamlType; 2355XamlMember parentProperty = _context.CurrentFrame.Member; 2363if (_context.CurrentFrame.ContentProperty != null) 2365_context.CurrentFrame.Member = parentProperty = _context.CurrentFrame.ContentProperty; 2369_context.CurrentFrame.Member = parentProperty = parentType.ContentProperty; 2375_context.CurrentFrame.Member = parentProperty = XamlLanguage.Items; 2379_context.CurrentFrame.Member = parentProperty = XamlLanguage.Initialization; 2386_context.CurrentFrame.Flags = Baml2006ReaderFrameFlags.HasImplicitProperty; 2390if (_context.TemplateStartDepth < 0 && _isBinaryProvider) 2395_context.TemplateStartDepth = _context.CurrentFrame.Depth; 2407consumer?.SetLineInfo(_context.LineNumber, _context.LineOffset); 2435else if (_context.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty) 2463_lookingForAKeyOnAMarkupExtensionInADictionaryDepth = _context.CurrentFrame.Depth; 2478EmitGoItemsPreamble(_context.CurrentFrame.Member.Type); 2489_context.PushScope(); 2490_context.CurrentFrame.XamlType = parentPropertyType; 2492_context.CurrentFrame.Flags = Baml2006ReaderFrameFlags.IsImplict; 2494_context.CurrentFrame.Member = XamlLanguage.Items; 2495_xamlNodesWriter.WriteStartMember(_context.CurrentFrame.Member); 2500return _context.LastKey.LastStaticResource; 2645XamlType type = _context.SchemaContext.GetXamlType(System.Windows.Markup.SystemKeyConverter.GetSystemClassType(keyId)); 2717get { return _context.CurrentFrame.FreezeFreezables; } 2718set { _context.CurrentFrame.FreezeFreezables = value; } 2726get { return _context.CurrentFrame.FreezeFreezables; }