2 writes to _context
PresentationFramework (2)
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
131_context = new Baml2006ReaderContext(schemaContext); 241_context = null;
165 references to _context
PresentationFramework (165)
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (165)
148_context.TemplateStartDepth = -1; 252get { return _context.CurrentFrame != null; } 257get { return _context.LineNumber; } 262get { return _context.LineOffset; } 271_context.KeyList = new List<KeyRecord>(); 272_context.CurrentFrame.IsDeferredContent = true; 342foreach (KeyRecord keyRecord in _context.KeyList) 355return _context.KeyList; 369_context.CurrentKey = _context.KeyList.IndexOf(record); 397Baml2006ReaderFrame baseFrame = _context.CurrentFrame; 400while (baseFrame != _context.CurrentFrame) 412_context.CurrentKey = _context.KeyList.IndexOf(record); 735string name = _context.SchemaContext.GetString(_binaryReader.ReadInt16()); 737if (_context.TemplateStartDepth < 0) 759bool shouldInjectContentProperty = _context.CurrentFrame.Member == null; 763if (_context.CurrentFrame.XamlType.ContentProperty != null) 767_xamlNodesWriter.WriteStartMember(_context.CurrentFrame.XamlType.ContentProperty); 803bool shouldDropProperty = _context.CurrentFrame.Member == null; 829_context.InsideStaticResource = false; 832_context.PopScope(); 842_context.LastKey.StaticResources.Add(staticResource); 843_context.InsideStaticResource = true; 848_context.PushScope(); 849_context.CurrentFrame.XamlType = type; 854InjectPropertyAndFrameIfNeeded(_context.SchemaContext.GetXamlType(typeof(StaticResourceExtension)), 0); 857object value = _context.KeyList[_context.CurrentKey - 1].StaticResources[resourceId]; 922optimizedStaticResource.KeyValue = _context.SchemaContext.GetString(keyId); 926var staticResources = _context.LastKey.StaticResources; 959_context.KeyList = new List<KeyRecord>(); 960_context.CurrentKey = 0; 961_context.CurrentFrame.IsDeferredContent = true; 975_context.CurrentFrame.Key = new KeyRecord(false, false, 0, value); 994string value = _context.SchemaContext.GetString(keyStringId); 997if (_context.CurrentFrame.IsDeferredContent) 999_context.KeyList.Add(key); 1003_context.CurrentFrame.Key = key; 1021if (_context.CurrentFrame.IsDeferredContent) 1023_context.KeyList.Add(key); 1027_context.CurrentFrame.Key = key; 1063if (_context.InsideKeyRecord != true && _context.InsideStaticResource != true) 1065InjectPropertyAndFrameIfNeeded(_context.SchemaContext.GetXamlType(typeof(String)), 0); 1073_context.CurrentFrame.Member != XamlLanguage.PositionalParameters) 1075if (_context.CurrentFrame.XamlType != null && _context.CurrentFrame.XamlType.IsCollection) 1077if (!_context.CurrentFrame.XamlType.IsWhitespaceSignificantCollection) 1084if (_context.CurrentFrame.Member.Type != null && 1085!_context.CurrentFrame.Member.Type.UnderlyingType.IsAssignableFrom(typeof(String))) 1096_context.CurrentFrame.Member = null; 1104_context.CurrentFrame.Member = XamlLanguage.PositionalParameters; 1146if (_root != null && _context.CurrentFrame.Depth == 0) 1165_context.PushScope(); 1166_context.CurrentFrame.XamlType = type; 1206_xamlNodesWriter.WriteStartObject(_context.CurrentFrame.XamlType); 1210if (_context.CurrentFrame.Depth == 1) 1221if (_context.PreviousFrame.IsDeferredContent && _context.InsideStaticResource == false) 1229KeyRecord record = _context.KeyList[_context.CurrentKey]; 1252_context.CurrentKey++; 1260if (_context.CurrentFrame.Key != null) 1264KeyRecord keyRecord = _context.CurrentFrame.Key; 1291_context.CurrentFrame.Key = null; 1294if (_context.CurrentFrame.DelayedConnectionId != -1) 1299_xamlNodesWriter.WriteValue(_context.CurrentFrame.DelayedConnectionId); 1303_xamlNodesWriter.WriteValue(_context.CurrentFrame.DelayedConnectionId.ToString(System.Windows.Markup.TypeConverterHelper.InvariantEnglishUS)); 1310if (_context.CurrentFrame.IsDeferredContent) 1312_context.KeyList = null; 1314_context.PopScope(); 1325XamlType type = _context.SchemaContext.GetXamlType(typeId); 1327_context.PushScope(); 1328_context.CurrentFrame.XamlType = type; 1332KeyRecord key = new KeyRecord(isShared, isSharedSet, valuePosition, _context.SchemaContext); 1337_context.InsideKeyRecord = true; 1344if (_context.PreviousFrame.IsDeferredContent) 1346_context.KeyList.Add(key); 1350_context.PreviousFrame.Key = key; 1358if (_context.PreviousFrame.IsDeferredContent) 1360key = _context.LastKey; 1364key = _context.PreviousFrame.Key; 1372_context.InsideKeyRecord = false; 1374_context.PopScope(); 1385if (_context.CurrentFrame.XamlType.UnderlyingType == typeof(EventSetter)) 1388_xamlNodesWriter.WriteStartMember(_context.SchemaContext.EventSetterEventProperty); 1405_xamlNodesWriter.WriteStartMember(_context.SchemaContext.EventSetterHandlerProperty); 1411XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1420if (_context.InsideKeyRecord || _context.InsideStaticResource) 1428if (_context.CurrentFrame.XamlType == null) 1434if (_context.CurrentFrame.Member != null) 1436throw new XamlParseException(SR.Get(SRID.PropertyOutOfOrder, _context.CurrentFrame.Member)); 1511XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1529serializerTypeId, property, _context.CurrentFrame.XamlType)); 1545converter = new EnumConverter(_context.CurrentFrame.XamlType.UnderlyingType); 1591XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1653XamlMember property = GetProperty(propertyId, _context.CurrentFrame.XamlType); 1704param = _context.SchemaContext.GetDependencyProperty(valueId); 1870XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1901XamlMember property = _context.SchemaContext.GetProperty(propertyId, _context.CurrentFrame.XamlType); 1909Object resource = _context.KeyList[_context.CurrentKey - 1].StaticResources[resourceId]; 1972string text = _context.SchemaContext.GetString(optimizedResource.KeyId); 1993XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 1995_context.CurrentFrame.Member = property; 2004XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 2006_context.CurrentFrame.Member = property; 2014XamlMember property = GetProperty(_binaryReader.ReadInt16(), _context.CurrentFrame.XamlType); 2016_context.CurrentFrame.Member = property; 2024_context.CurrentFrame.Member = null; 2032if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth == _context.CurrentFrame.Depth) 2039_context.CurrentFrame.Member = null; 2051Baml2006ReaderFrame currentFrame = _context.CurrentFrame; 2137Debug.Assert(_context.CurrentFrame.XamlType != null, "BAML Xmlns record is only legal between ElementStart and ElementEnd"); 2145_context.CurrentFrame.AddNamespace(prefix, xamlNs); 2176_context.LineOffset = _binaryReader.ReadInt32(); 2181consumer.SetLineInfo(_context.LineNumber, _context.LineOffset); 2188_context.LineNumber = _binaryReader.ReadInt32(); 2189_context.LineOffset = _binaryReader.ReadInt32(); 2194consumer.SetLineInfo(_context.LineNumber, _context.LineOffset); 2273_context.CurrentFrame.ContentProperty = contentProperty; 2282if (_context.CurrentFrame.Member != null) 2287Baml2006ReaderFrame frame = _context.CurrentFrame; 2290frame = _context.PreviousFrame; 2344if (_context.CurrentFrame.Flags == Baml2006ReaderFrameFlags.IsImplict) 2349_context.PopScope(); 2352if (_context.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty) 2355if (_context.CurrentFrame.Depth == _context.TemplateStartDepth) 2363_context.TemplateStartDepth = -1; 2368_context.CurrentFrame.Member = null; 2369_context.CurrentFrame.Flags = Baml2006ReaderFrameFlags.None; 2377if (_lookingForAKeyOnAMarkupExtensionInADictionaryDepth == _context.CurrentFrame.Depth) 2382XamlType parentType = _context.CurrentFrame.XamlType; 2383XamlMember parentProperty = _context.CurrentFrame.Member; 2391if (_context.CurrentFrame.ContentProperty != null) 2393_context.CurrentFrame.Member = parentProperty = _context.CurrentFrame.ContentProperty; 2397_context.CurrentFrame.Member = parentProperty = parentType.ContentProperty; 2403_context.CurrentFrame.Member = parentProperty = XamlLanguage.Items; 2407_context.CurrentFrame.Member = parentProperty = XamlLanguage.Initialization; 2414_context.CurrentFrame.Flags = Baml2006ReaderFrameFlags.HasImplicitProperty; 2418if (_context.TemplateStartDepth < 0 && _isBinaryProvider) 2423_context.TemplateStartDepth = _context.CurrentFrame.Depth; 2437consumer.SetLineInfo(_context.LineNumber, _context.LineOffset); 2466else if (_context.CurrentFrame.Flags == Baml2006ReaderFrameFlags.HasImplicitProperty) 2494_lookingForAKeyOnAMarkupExtensionInADictionaryDepth = _context.CurrentFrame.Depth; 2509EmitGoItemsPreamble(_context.CurrentFrame.Member.Type); 2520_context.PushScope(); 2521_context.CurrentFrame.XamlType = parentPropertyType; 2523_context.CurrentFrame.Flags = Baml2006ReaderFrameFlags.IsImplict; 2525_context.CurrentFrame.Member = XamlLanguage.Items; 2526_xamlNodesWriter.WriteStartMember(_context.CurrentFrame.Member); 2531return _context.LastKey.LastStaticResource; 2676XamlType type = _context.SchemaContext.GetXamlType(System.Windows.Markup.SystemKeyConverter.GetSystemClassType(keyId)); 2748get { return _context.CurrentFrame.FreezeFreezables; } 2749set { _context.CurrentFrame.FreezeFreezables = value; } 2757get { return _context.CurrentFrame.FreezeFreezables; }