8 writes to ExpectedType
PresentationFramework (8)
System\Windows\Markup\BamlRecordReader.cs (8)
1558ParentContext.ExpectedType = null; 3144context.ExpectedType = null; // Don't want to receive any other values 3449CurrentContext.ExpectedType = null; 3734CurrentContext.ExpectedType = null; 3872CurrentContext.ExpectedType = null; 4243context.ExpectedType = null; // Don't want to receive any other values 4305d.ExpectedType = expectedType; 4871parentContext.ExpectedType = null;
21 references to ExpectedType
PresentationFramework (21)
System\Windows\Markup\BamlRecordReader.cs (21)
1008null == currentContext.ExpectedType) 1381Type elementType = ParentContext.ExpectedType; 3128Type = context.ExpectedType.GetElementType() 3441Debug.Assert( CurrentContext.ObjectData == null && CurrentContext.ExpectedType != null, 3445object o = GetObjectFromString(CurrentContext.ExpectedType, bamlTextRecord.Value, converterTypeId); 3454CurrentContext.ExpectedType.FullName); 3466ThrowException(nameof(SR.ParserCantCreateInstanceType), CurrentContext.ExpectedType.FullName); 3494if (null == CurrentContext.ExpectedType) 3527if (null == CurrentContext.ExpectedType) 3534object o = GetObjectFromString(CurrentContext.ExpectedType, bamlTextRecord.Value, converterTypeId); 3543CurrentContext.ExpectedType.FullName, bamlTextRecord.Value); 3628null != CurrentContext.ExpectedType && null != ParentContext); 3832null != CurrentContext.ExpectedType); 4230null != context.ExpectedType) 4233$"We had expected to use a TypeConverter for this {context.ExpectedType.FullName} but somebody is trying to create one now without using a TypeConverter. If TypeConverter is the correct way, fix the code calling this method. If not, fix the 'should we use a TypeConverter?' logic in XamlReaderHelper."); 4235context.ObjectData = CreateInstanceFromType(context.ExpectedType, 4239ThrowException(nameof(SR.ParserCantCreateInstanceType), context.ExpectedType.FullName); 4801else if (parentContext.ExpectedType != null) 4803return parentContext.ExpectedType; 4835parentContext.ExpectedType != null) 4865if (isMarkupExtension || parentContext.ExpectedType.IsAssignableFrom(elementType))