8 writes to ExpectedType
PresentationFramework (8)
System\Windows\Markup\BamlRecordReader.cs (8)
1557ParentContext.ExpectedType = null; 3140context.ExpectedType = null; // Don't want to receive any other values 3442CurrentContext.ExpectedType = null; 3727CurrentContext.ExpectedType = null; 3865CurrentContext.ExpectedType = null; 4236context.ExpectedType = null; // Don't want to receive any other values 4298d.ExpectedType = expectedType; 4864parentContext.ExpectedType = null;
21 references to ExpectedType
PresentationFramework (21)
System\Windows\Markup\BamlRecordReader.cs (21)
1007null == currentContext.ExpectedType) 1380Type elementType = ParentContext.ExpectedType; 3124Type = context.ExpectedType.GetElementType() 3434Debug.Assert( CurrentContext.ObjectData == null && CurrentContext.ExpectedType != null, 3438object o = GetObjectFromString(CurrentContext.ExpectedType, bamlTextRecord.Value, converterTypeId); 3447CurrentContext.ExpectedType.FullName); 3459ThrowException(nameof(SR.ParserCantCreateInstanceType), CurrentContext.ExpectedType.FullName); 3487if (null == CurrentContext.ExpectedType) 3520if (null == CurrentContext.ExpectedType) 3527object o = GetObjectFromString(CurrentContext.ExpectedType, bamlTextRecord.Value, converterTypeId); 3536CurrentContext.ExpectedType.FullName, bamlTextRecord.Value); 3621null != CurrentContext.ExpectedType && null != ParentContext); 3825null != CurrentContext.ExpectedType); 4223null != context.ExpectedType) 4226$"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."); 4228context.ObjectData = CreateInstanceFromType(context.ExpectedType, 4232ThrowException(nameof(SR.ParserCantCreateInstanceType), context.ExpectedType.FullName); 4794else if (parentContext.ExpectedType != null) 4796return parentContext.ExpectedType; 4828parentContext.ExpectedType != null) 4858if (isMarkupExtension || parentContext.ExpectedType.IsAssignableFrom(elementType))