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