8 writes to ExpectedType
PresentationFramework (8)
System\Windows\Markup\BamlRecordReader.cs (8)
1567ParentContext.ExpectedType = null; 3152context.ExpectedType = null; // Don't want to receive any other values 3457CurrentContext.ExpectedType = null; 3742CurrentContext.ExpectedType = null; 3881CurrentContext.ExpectedType = null; 4252context.ExpectedType = null; // Don't want to receive any other values 4314d.ExpectedType = expectedType; 4883parentContext.ExpectedType = null;
21 references to ExpectedType
PresentationFramework (21)
System\Windows\Markup\BamlRecordReader.cs (21)
1017null == currentContext.ExpectedType) 1390Type elementType = ParentContext.ExpectedType; 3137arrayExt.Type = context.ExpectedType.GetElementType(); 3449Debug.Assert( CurrentContext.ObjectData == null && CurrentContext.ExpectedType != null, 3453object o = GetObjectFromString(CurrentContext.ExpectedType, bamlTextRecord.Value, converterTypeId); 3462CurrentContext.ExpectedType.FullName); 3474ThrowException(nameof(SR.ParserCantCreateInstanceType), CurrentContext.ExpectedType.FullName); 3502if (null == CurrentContext.ExpectedType) 3535if (null == CurrentContext.ExpectedType) 3542object o = GetObjectFromString(CurrentContext.ExpectedType, bamlTextRecord.Value, converterTypeId); 3551CurrentContext.ExpectedType.FullName, bamlTextRecord.Value); 3636null != CurrentContext.ExpectedType && null != ParentContext); 3841null != CurrentContext.ExpectedType); 4239null != context.ExpectedType) 4242$"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."); 4244context.ObjectData = CreateInstanceFromType(context.ExpectedType, 4248ThrowException(nameof(SR.ParserCantCreateInstanceType), context.ExpectedType.FullName); 4813else if (parentContext.ExpectedType != null) 4815return parentContext.ExpectedType; 4847parentContext.ExpectedType != null) 4877if (isMarkupExtension || parentContext.ExpectedType.IsAssignableFrom(elementType))