2 writes to _context
PresentationFramework (2)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
113_context = new Baml2006ReaderContext(schemaContext); 219_context = null;
165 references to _context
PresentationFramework (165)
System\Windows\Markup\Baml2006\Baml2006Reader.cs (165)
130_context.TemplateStartDepth = -1; 230get { return _context.CurrentFrame != null; } 235get { return _context.LineNumber; } 240get { return _context.LineOffset; } 249_context.KeyList = new List<KeyRecord>(); 250_context.CurrentFrame.IsDeferredContent = true; 320foreach (KeyRecord keyRecord in _context.KeyList) 333return _context.KeyList; 347_context.CurrentKey = _context.KeyList.IndexOf(record); 374Baml2006ReaderFrame baseFrame = _context.CurrentFrame; 377while (baseFrame != _context.CurrentFrame) 389_context.CurrentKey = _context.KeyList.IndexOf(record); 712string name = _context.SchemaContext.GetString(_binaryReader.ReadInt16()); 714if (_context.TemplateStartDepth < 0) 736bool shouldInjectContentProperty = _context.CurrentFrame.Member == null; 740if (_context.CurrentFrame.XamlType.ContentProperty != null) 744_xamlNodesWriter.WriteStartMember(_context.CurrentFrame.XamlType.ContentProperty); 782bool shouldDropProperty = _context.CurrentFrame.Member == null; 806_context.InsideStaticResource = false; 809_context.PopScope(); 818_context.LastKey.StaticResources.Add(staticResource); 819_context.InsideStaticResource = true; 824_context.PushScope(); 825_context.CurrentFrame.XamlType = type; 830InjectPropertyAndFrameIfNeeded(_context.SchemaContext.GetXamlType(typeof(StaticResourceExtension)), 0); 833object value = _context.KeyList[_context.CurrentKey - 1].StaticResources[resourceId]; 900optimizedStaticResource.KeyValue = _context.SchemaContext.GetString(keyId); 904var staticResources = _context.LastKey.StaticResources; 937_context.KeyList = new List<KeyRecord>(); 938_context.CurrentKey = 0; 939_context.CurrentFrame.IsDeferredContent = true; 953_context.CurrentFrame.Key = new KeyRecord(false, false, 0, value); 972string value = _context.SchemaContext.GetString(keyStringId); 975if (_context.CurrentFrame.IsDeferredContent) 977_context.KeyList.Add(key); 981_context.CurrentFrame.Key = key; 999if (_context.CurrentFrame.IsDeferredContent) 1001_context.KeyList.Add(key); 1005_context.CurrentFrame.Key = key; 1040if (!_context.InsideKeyRecord && !_context.InsideStaticResource) 1042InjectPropertyAndFrameIfNeeded(_context.SchemaContext.GetXamlType(typeof(String)), 0); 1050_context.CurrentFrame.Member != XamlLanguage.PositionalParameters) 1052if (_context.CurrentFrame.XamlType != null && _context.CurrentFrame.XamlType.IsCollection) 1054if (!_context.CurrentFrame.XamlType.IsWhitespaceSignificantCollection) 1061if (_context.CurrentFrame.Member.Type != null && 1062!_context.CurrentFrame.Member.Type.UnderlyingType.IsAssignableFrom(typeof(String))) 1073_context.CurrentFrame.Member = null; 1081_context.CurrentFrame.Member = XamlLanguage.PositionalParameters; 1133if (_root != null && _context.CurrentFrame.Depth == 0) 1151_context.PushScope(); 1152_context.CurrentFrame.XamlType = type; 1191_xamlNodesWriter.WriteStartObject(_context.CurrentFrame.XamlType); 1195if (_context.CurrentFrame.Depth == 1) 1206if (_context.PreviousFrame.IsDeferredContent && !_context.InsideStaticResource) 1214KeyRecord record = _context.KeyList[_context.CurrentKey]; 1237_context.CurrentKey++; 1245if (_context.CurrentFrame.Key != null) 1249KeyRecord keyRecord = _context.CurrentFrame.Key; 1276_context.CurrentFrame.Key = null; 1279if (_context.CurrentFrame.DelayedConnectionId != -1) 1284_xamlNodesWriter.WriteValue(_context.CurrentFrame.DelayedConnectionId); 1288_xamlNodesWriter.WriteValue(_context.CurrentFrame.DelayedConnectionId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS)); 1295if (_context.CurrentFrame.IsDeferredContent) 1297_context.KeyList = null; 1299_context.PopScope(); 1310XamlType type = _context.SchemaContext.GetXamlType(typeId); 1312_context.PushScope(); 1313_context.CurrentFrame.XamlType = type; 1317KeyRecord key = new KeyRecord(isShared, isSharedSet, valuePosition, _context.SchemaContext) 1324_context.InsideKeyRecord = true; 1331if (_context.PreviousFrame.IsDeferredContent) 1333_context.KeyList.Add(key); 1337_context.PreviousFrame.Key = key; 1345if (_context.PreviousFrame.IsDeferredContent) 1347key = _context.LastKey; 1351key = _context.PreviousFrame.Key; 1359_context.InsideKeyRecord = false; 1361_context.PopScope(); 1372if (_context.CurrentFrame.XamlType.UnderlyingType == typeof(EventSetter)) 1375_xamlNodesWriter.WriteStartMember(_context.SchemaContext.EventSetterEventProperty); 1392_xamlNodesWriter.WriteStartMember(_context.SchemaContext.EventSetterHandlerProperty); 1398XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1407if (_context.InsideKeyRecord || _context.InsideStaticResource) 1415if (_context.CurrentFrame.XamlType == null) 1421if (_context.CurrentFrame.Member != null) 1423throw new XamlParseException(SR.Format(SR.PropertyOutOfOrder, _context.CurrentFrame.Member)); 1498XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1515serializerTypeId, property, _context.CurrentFrame.XamlType)); 1531converter = new EnumConverter(_context.CurrentFrame.XamlType.UnderlyingType); 1577XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1639XamlMember property = GetProperty(propertyId, _context.CurrentFrame.XamlType); 1690param = _context.SchemaContext.GetDependencyProperty(valueId); 1856XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1886XamlMember property = _context.SchemaContext.GetProperty(propertyId, _context.CurrentFrame.XamlType); 1894Object resource = _context.KeyList[_context.CurrentKey - 1].StaticResources[resourceId]; 1956string text = _context.SchemaContext.GetString(optimizedResource.KeyId); 1976XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1978_context.CurrentFrame.Member = property; 1987XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1989_context.CurrentFrame.Member = property; 1997XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1999_context.CurrentFrame.Member = property; 2007_context.CurrentFrame.Member = null; 2015if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth == _context.CurrentFrame.Depth) 2022_context.CurrentFrame.Member = null; 2034Baml2006ReaderFrame currentFrame = _context.CurrentFrame; 2116Debug.Assert(_context.CurrentFrame.XamlType != null, "BAML Xmlns record is only legal between ElementStart and ElementEnd"); 2124_context.CurrentFrame.AddNamespace(prefix, xamlNs); 2154_context.LineOffset = _binaryReader.ReadInt32(); 2157consumer?.SetLineInfo(_context.LineNumber, _context.LineOffset); 2163_context.LineNumber = _binaryReader.ReadInt32(); 2164_context.LineOffset = _binaryReader.ReadInt32(); 2167consumer?.SetLineInfo(_context.LineNumber, _context.LineOffset); 2245_context.CurrentFrame.ContentProperty = contentProperty; 2253if (_context.CurrentFrame.Member != null) 2258Baml2006ReaderFrame frame = _context.CurrentFrame; 2261frame = _context.PreviousFrame; 2315if (_context.CurrentFrame.Flags == Baml2006ReaderFrameFlags.IsImplict) 2320_context.PopScope(); 2323if (_context.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty) 2326if (_context.CurrentFrame.Depth == _context.TemplateStartDepth) 2334_context.TemplateStartDepth = -1; 2339_context.CurrentFrame.Member = null; 2340_context.CurrentFrame.Flags = Baml2006ReaderFrameFlags.None; 2348if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth == _context.CurrentFrame.Depth) 2353XamlType parentType = _context.CurrentFrame.XamlType; 2354XamlMember parentProperty = _context.CurrentFrame.Member; 2362if (_context.CurrentFrame.ContentProperty != null) 2364_context.CurrentFrame.Member = parentProperty = _context.CurrentFrame.ContentProperty; 2368_context.CurrentFrame.Member = parentProperty = parentType.ContentProperty; 2374_context.CurrentFrame.Member = parentProperty = XamlLanguage.Items; 2378_context.CurrentFrame.Member = parentProperty = XamlLanguage.Initialization; 2385_context.CurrentFrame.Flags = Baml2006ReaderFrameFlags.HasImplicitProperty; 2389if (_context.TemplateStartDepth < 0 && _isBinaryProvider) 2394_context.TemplateStartDepth = _context.CurrentFrame.Depth; 2406consumer?.SetLineInfo(_context.LineNumber, _context.LineOffset); 2434else if (_context.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty) 2462_lookingForAKeyOnAMarkupExtensionInADictionaryDepth = _context.CurrentFrame.Depth; 2477EmitGoItemsPreamble(_context.CurrentFrame.Member.Type); 2488_context.PushScope(); 2489_context.CurrentFrame.XamlType = parentPropertyType; 2491_context.CurrentFrame.Flags = Baml2006ReaderFrameFlags.IsImplict; 2493_context.CurrentFrame.Member = XamlLanguage.Items; 2494_xamlNodesWriter.WriteStartMember(_context.CurrentFrame.Member); 2499return _context.LastKey.LastStaticResource; 2644XamlType type = _context.SchemaContext.GetXamlType(System.Windows.Markup.SystemKeyConverter.GetSystemClassType(keyId)); 2716get { return _context.CurrentFrame.FreezeFreezables; } 2717set { _context.CurrentFrame.FreezeFreezables = value; } 2725get { return _context.CurrentFrame.FreezeFreezables; }