8 writes to ExpectedType
PresentationFramework (8)
System\Windows\Markup\BamlRecordReader.cs (8)
1557ParentContext.ExpectedType = null; 3143context.ExpectedType = null; // Don't want to receive any other values 3448CurrentContext.ExpectedType = null; 3733CurrentContext.ExpectedType = null; 3871CurrentContext.ExpectedType = null; 4242context.ExpectedType = null; // Don't want to receive any other values 4304d.ExpectedType = expectedType; 4870parentContext.ExpectedType = null;
21 references to ExpectedType
PresentationFramework (21)
System\Windows\Markup\BamlRecordReader.cs (21)
1007null == currentContext.ExpectedType) 1380Type elementType = ParentContext.ExpectedType; 3127Type = context.ExpectedType.GetElementType() 3440Debug.Assert( CurrentContext.ObjectData == null && CurrentContext.ExpectedType != null, 3444object o = GetObjectFromString(CurrentContext.ExpectedType, bamlTextRecord.Value, converterTypeId); 3453CurrentContext.ExpectedType.FullName); 3465ThrowException(nameof(SR.ParserCantCreateInstanceType), CurrentContext.ExpectedType.FullName); 3493if (null == CurrentContext.ExpectedType) 3526if (null == CurrentContext.ExpectedType) 3533object o = GetObjectFromString(CurrentContext.ExpectedType, bamlTextRecord.Value, converterTypeId); 3542CurrentContext.ExpectedType.FullName, bamlTextRecord.Value); 3627null != CurrentContext.ExpectedType && null != ParentContext); 3831null != CurrentContext.ExpectedType); 4229null != context.ExpectedType) 4232$"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."); 4234context.ObjectData = CreateInstanceFromType(context.ExpectedType, 4238ThrowException(nameof(SR.ParserCantCreateInstanceType), context.ExpectedType.FullName); 4800else if (parentContext.ExpectedType != null) 4802return parentContext.ExpectedType; 4834parentContext.ExpectedType != null) 4864if (isMarkupExtension || parentContext.ExpectedType.IsAssignableFrom(elementType))