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