8 writes to ExpectedType
PresentationFramework (8)
System\Windows\Markup\BamlRecordReader.cs (8)
1576ParentContext.ExpectedType = null; 3161context.ExpectedType = null; // Don't want to receive any other values 3466CurrentContext.ExpectedType = null; 3751CurrentContext.ExpectedType = null; 3890CurrentContext.ExpectedType = null; 4261context.ExpectedType = null; // Don't want to receive any other values 4323d.ExpectedType = expectedType; 4892parentContext.ExpectedType = null;
21 references to ExpectedType
PresentationFramework (21)
System\Windows\Markup\BamlRecordReader.cs (21)
1026null == currentContext.ExpectedType) 1399Type elementType = ParentContext.ExpectedType; 3146arrayExt.Type = context.ExpectedType.GetElementType(); 3458Debug.Assert( CurrentContext.ObjectData == null && CurrentContext.ExpectedType != null, 3462object o = GetObjectFromString(CurrentContext.ExpectedType, bamlTextRecord.Value, converterTypeId); 3471CurrentContext.ExpectedType.FullName); 3483ThrowException(nameof(SR.ParserCantCreateInstanceType), CurrentContext.ExpectedType.FullName); 3511if (null == CurrentContext.ExpectedType) 3544if (null == CurrentContext.ExpectedType) 3551object o = GetObjectFromString(CurrentContext.ExpectedType, bamlTextRecord.Value, converterTypeId); 3560CurrentContext.ExpectedType.FullName, bamlTextRecord.Value); 3645null != CurrentContext.ExpectedType && null != ParentContext); 3850null != CurrentContext.ExpectedType); 4248null != context.ExpectedType) 4251$"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."); 4253context.ObjectData = CreateInstanceFromType(context.ExpectedType, 4257ThrowException(nameof(SR.ParserCantCreateInstanceType), context.ExpectedType.FullName); 4822else if (parentContext.ExpectedType != null) 4824return parentContext.ExpectedType; 4856parentContext.ExpectedType != null) 4886if (isMarkupExtension || parentContext.ExpectedType.IsAssignableFrom(elementType))