8 writes to ExpectedType
PresentationFramework (8)
System\Windows\Markup\BamlRecordReader.cs (8)
1576
ParentContext.
ExpectedType
= null;
3161
context.
ExpectedType
= null; // Don't want to receive any other values
3466
CurrentContext.
ExpectedType
= null;
3751
CurrentContext.
ExpectedType
= null;
3890
CurrentContext.
ExpectedType
= null;
4261
context.
ExpectedType
= null; // Don't want to receive any other values
4323
d.
ExpectedType
= expectedType;
4892
parentContext.
ExpectedType
= null;
21 references to ExpectedType
PresentationFramework (21)
System\Windows\Markup\BamlRecordReader.cs (21)
1026
null == currentContext.
ExpectedType
)
1399
Type elementType = ParentContext.
ExpectedType
;
3146
arrayExt.Type = context.
ExpectedType
.GetElementType();
3458
Debug.Assert( CurrentContext.ObjectData == null && CurrentContext.
ExpectedType
!= null,
3462
object o = GetObjectFromString(CurrentContext.
ExpectedType
, bamlTextRecord.Value, converterTypeId);
3471
CurrentContext.
ExpectedType
.FullName);
3483
ThrowException(nameof(SR.ParserCantCreateInstanceType), CurrentContext.
ExpectedType
.FullName);
3511
if (null == CurrentContext.
ExpectedType
)
3544
if (null == CurrentContext.
ExpectedType
)
3551
object o = GetObjectFromString(CurrentContext.
ExpectedType
, bamlTextRecord.Value, converterTypeId);
3560
CurrentContext.
ExpectedType
.FullName, bamlTextRecord.Value);
3645
null != CurrentContext.
ExpectedType
&& null != ParentContext);
3850
null != CurrentContext.
ExpectedType
);
4248
null != context.
ExpectedType
)
4251
$"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.");
4253
context.ObjectData = CreateInstanceFromType(context.
ExpectedType
,
4257
ThrowException(nameof(SR.ParserCantCreateInstanceType), context.
ExpectedType
.FullName);
4822
else if (parentContext.
ExpectedType
!= null)
4824
return parentContext.
ExpectedType
;
4856
parentContext.
ExpectedType
!= null)
4886
if (isMarkupExtension || parentContext.
ExpectedType
.IsAssignableFrom(elementType))