48 references to ThrowException
PresentationFramework (48)
System\Windows\Markup\BamlCollectionHolder.cs (5)
132
_reader.
ThrowException
(nameof(SR.ParserParentDO), Parent.ToString());
149
_reader.
ThrowException
(nameof(SR.ParserCantGetDPOrPi), AttributeName);
186
_reader.
ThrowException
(nameof(SR.ParserCantGetProperty), PropertyDefinition.Name);
199
_reader.
ThrowException
(nameof(SR.ParserCantGetDPOrPi), AttributeName);
213
_reader.
ThrowException
(nameof(SR.ParserReadOnlyNullProperty), PropertyDefinition.Name);
System\Windows\Markup\BamlRecordReader.cs (43)
724
ThrowException
(nameof(SR.ParserBamlEvent), bamlRoutedEventRecord.Value);
773
ThrowException
(nameof(SR.ParserUnknownBaml), ((int)bamlRecord.RecordType).ToString(CultureInfo.CurrentCulture));
871
ThrowException
(nameof(SR.ParserNoElementCreate2), elementType.FullName);
1020
ThrowException
(nameof(SR.ParserNoComplexMulti), propName);
1371
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
1809
ThrowException
(nameof(SR.ParserUnexpInBAML), keyRecord.RecordType.ToString(CultureInfo.CurrentCulture));
1941
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2030
ThrowException
(nameof(SR.ParserUnexpInBAML), "BamlLiteralContent" );
2042
ThrowException
(nameof(SR.ParserUnexpInBAML), "PropertyComplexStart");
2078
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2190
ThrowException
(nameof(SR.ParserUnexpInBAML), "PropertyCustom");
2267
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2281
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2296
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2312
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2433
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2481
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2634
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2655
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2895
ThrowException
(nameof(SR.ParserCantGetDPOrPi), propertyDefinition.Name);
2982
ThrowException
(nameof(SR.ParserNoMatchingArray), GetPropertyNameFromAttributeId(attributeId));
3057
ThrowException
(nameof(SR.ParserReadOnlyProp), holder.PropertyDefinition.Name);
3149
ThrowException
(nameof(SR.ParserNullPropertyCollection), holder.PropertyDefinition.Name);
3170
ThrowException
(nameof(SR.ParserPropertyCollectionClosed), holder.PropertyDefinition.Name);
3287
ThrowException
(nameof(SR.ParserNoResource), bamlDefAttributeRecord.Value);
3340
ThrowException
(nameof(SR.ParserUnknownDefAttribute), bamlDefAttributeRecord.Name);
3358
ThrowException
(nameof(SR.ParserNoResource), XamlReaderHelper.DefinitionName);
3474
ThrowException
(nameof(SR.ParserCantCreateInstanceType), CurrentContext.ExpectedType.FullName);
3504
ThrowException
(nameof(SR.ParserNoComplexMulti),
3537
ThrowException
(nameof(SR.ParserNoComplexMulti),
3564
ThrowException
(nameof(SR.ParserNoMatchingIList), "?");
3577
ThrowException
(nameof(SR.ParserNoMatchingIList), "?");
3595
ThrowException
(nameof(SR.ParserUnexpInBAML), "Text");
3624
ThrowException
(nameof(SR.ParserUnknownPresentationOptionsAttribute), bamlPresentationOptionsAttributeRecord.Name);
4224
ThrowException
(nameof(SR.ParserNoResource), resourceNameString);
4230
ThrowException
(nameof(SR.ParserNoResource) , $"{{{resourceNameObject}}}");
4248
ThrowException
(nameof(SR.ParserCantCreateInstanceType), context.ExpectedType.FullName);
4770
ThrowException
( nameof(SR.ParserCannotAddAnyChildren), typeName );
4788
ThrowException
( nameof(SR.ParserCannotAddAnyChildren), typeName );
4938
ThrowException
(nameof(SR.ParserParentDO), value.ToString());
5231
ThrowException
(nameof(SR.ParserNotMarkedPublic), type.Name);
5238
ThrowException
(nameof(SR.ParserNotAllowedInternalType), type.Name);
5277
ThrowException
(nameof(SR.ParserNotAllowedInternalType), type.Name);