8 writes to ExpectedType
PresentationFramework (8)
System\Windows\Markup\BamlRecordReader.cs (8)
1557
ParentContext.
ExpectedType
= null;
3143
context.
ExpectedType
= null; // Don't want to receive any other values
3448
CurrentContext.
ExpectedType
= null;
3733
CurrentContext.
ExpectedType
= null;
3871
CurrentContext.
ExpectedType
= null;
4242
context.
ExpectedType
= null; // Don't want to receive any other values
4304
d.
ExpectedType
= expectedType;
4870
parentContext.
ExpectedType
= null;
21 references to ExpectedType
PresentationFramework (21)
System\Windows\Markup\BamlRecordReader.cs (21)
1007
null == currentContext.
ExpectedType
)
1380
Type elementType = ParentContext.
ExpectedType
;
3127
Type = context.
ExpectedType
.GetElementType()
3440
Debug.Assert( CurrentContext.ObjectData == null && CurrentContext.
ExpectedType
!= null,
3444
object o = GetObjectFromString(CurrentContext.
ExpectedType
, bamlTextRecord.Value, converterTypeId);
3453
CurrentContext.
ExpectedType
.FullName);
3465
ThrowException(nameof(SR.ParserCantCreateInstanceType), CurrentContext.
ExpectedType
.FullName);
3493
if (null == CurrentContext.
ExpectedType
)
3526
if (null == CurrentContext.
ExpectedType
)
3533
object o = GetObjectFromString(CurrentContext.
ExpectedType
, bamlTextRecord.Value, converterTypeId);
3542
CurrentContext.
ExpectedType
.FullName, bamlTextRecord.Value);
3627
null != CurrentContext.
ExpectedType
&& null != ParentContext);
3831
null != CurrentContext.
ExpectedType
);
4229
null != context.
ExpectedType
)
4232
$"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.");
4234
context.ObjectData = CreateInstanceFromType(context.
ExpectedType
,
4238
ThrowException(nameof(SR.ParserCantCreateInstanceType), context.
ExpectedType
.FullName);
4800
else if (parentContext.
ExpectedType
!= null)
4802
return parentContext.
ExpectedType
;
4834
parentContext.
ExpectedType
!= null)
4864
if (isMarkupExtension || parentContext.
ExpectedType
.IsAssignableFrom(elementType))