8 writes to ExpectedType
PresentationFramework (8)
System\Windows\Markup\BamlRecordReader.cs (8)
1558
ParentContext.
ExpectedType
= null;
3144
context.
ExpectedType
= null; // Don't want to receive any other values
3449
CurrentContext.
ExpectedType
= null;
3734
CurrentContext.
ExpectedType
= null;
3872
CurrentContext.
ExpectedType
= null;
4243
context.
ExpectedType
= null; // Don't want to receive any other values
4305
d.
ExpectedType
= expectedType;
4871
parentContext.
ExpectedType
= null;
21 references to ExpectedType
PresentationFramework (21)
System\Windows\Markup\BamlRecordReader.cs (21)
1008
null == currentContext.
ExpectedType
)
1381
Type elementType = ParentContext.
ExpectedType
;
3128
Type = context.
ExpectedType
.GetElementType()
3441
Debug.Assert( CurrentContext.ObjectData == null && CurrentContext.
ExpectedType
!= null,
3445
object o = GetObjectFromString(CurrentContext.
ExpectedType
, bamlTextRecord.Value, converterTypeId);
3454
CurrentContext.
ExpectedType
.FullName);
3466
ThrowException(nameof(SR.ParserCantCreateInstanceType), CurrentContext.
ExpectedType
.FullName);
3494
if (null == CurrentContext.
ExpectedType
)
3527
if (null == CurrentContext.
ExpectedType
)
3534
object o = GetObjectFromString(CurrentContext.
ExpectedType
, bamlTextRecord.Value, converterTypeId);
3543
CurrentContext.
ExpectedType
.FullName, bamlTextRecord.Value);
3628
null != CurrentContext.
ExpectedType
&& null != ParentContext);
3832
null != CurrentContext.
ExpectedType
);
4230
null != context.
ExpectedType
)
4233
$"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.");
4235
context.ObjectData = CreateInstanceFromType(context.
ExpectedType
,
4239
ThrowException(nameof(SR.ParserCantCreateInstanceType), context.
ExpectedType
.FullName);
4801
else if (parentContext.
ExpectedType
!= null)
4803
return parentContext.
ExpectedType
;
4835
parentContext.
ExpectedType
!= null)
4865
if (isMarkupExtension || parentContext.
ExpectedType
.IsAssignableFrom(elementType))