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)
715
ThrowException
(nameof(SR.ParserBamlEvent), bamlRoutedEventRecord.Value);
764
ThrowException
(nameof(SR.ParserUnknownBaml), ((int)bamlRecord.RecordType).ToString(CultureInfo.CurrentCulture));
862
ThrowException
(nameof(SR.ParserNoElementCreate2), elementType.FullName);
1011
ThrowException
(nameof(SR.ParserNoComplexMulti), propName);
1362
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
1800
ThrowException
(nameof(SR.ParserUnexpInBAML), keyRecord.RecordType.ToString(CultureInfo.CurrentCulture));
1932
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2021
ThrowException
(nameof(SR.ParserUnexpInBAML), "BamlLiteralContent" );
2033
ThrowException
(nameof(SR.ParserUnexpInBAML), "PropertyComplexStart");
2069
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2181
ThrowException
(nameof(SR.ParserUnexpInBAML), "PropertyCustom");
2258
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2272
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2287
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2303
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2426
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2474
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2627
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2648
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2888
ThrowException
(nameof(SR.ParserCantGetDPOrPi), propertyDefinition.Name);
2972
ThrowException
(nameof(SR.ParserNoMatchingArray), GetPropertyNameFromAttributeId(attributeId));
3047
ThrowException
(nameof(SR.ParserReadOnlyProp), holder.PropertyDefinition.Name);
3141
ThrowException
(nameof(SR.ParserNullPropertyCollection), holder.PropertyDefinition.Name);
3162
ThrowException
(nameof(SR.ParserPropertyCollectionClosed), holder.PropertyDefinition.Name);
3279
ThrowException
(nameof(SR.ParserNoResource), bamlDefAttributeRecord.Value);
3332
ThrowException
(nameof(SR.ParserUnknownDefAttribute), bamlDefAttributeRecord.Name);
3350
ThrowException
(nameof(SR.ParserNoResource), XamlReaderHelper.DefinitionName);
3466
ThrowException
(nameof(SR.ParserCantCreateInstanceType), CurrentContext.ExpectedType.FullName);
3496
ThrowException
(nameof(SR.ParserNoComplexMulti),
3529
ThrowException
(nameof(SR.ParserNoComplexMulti),
3556
ThrowException
(nameof(SR.ParserNoMatchingIList), "?");
3569
ThrowException
(nameof(SR.ParserNoMatchingIList), "?");
3587
ThrowException
(nameof(SR.ParserUnexpInBAML), "Text");
3616
ThrowException
(nameof(SR.ParserUnknownPresentationOptionsAttribute), bamlPresentationOptionsAttributeRecord.Name);
4215
ThrowException
(nameof(SR.ParserNoResource), resourceNameString);
4221
ThrowException
(nameof(SR.ParserNoResource) , $"{{{resourceNameObject}}}");
4239
ThrowException
(nameof(SR.ParserCantCreateInstanceType), context.ExpectedType.FullName);
4758
ThrowException
( nameof(SR.ParserCannotAddAnyChildren), typeName );
4776
ThrowException
( nameof(SR.ParserCannotAddAnyChildren), typeName );
4926
ThrowException
(nameof(SR.ParserParentDO), value.ToString());
5219
ThrowException
(nameof(SR.ParserNotMarkedPublic), type.Name);
5226
ThrowException
(nameof(SR.ParserNotAllowedInternalType), type.Name);
5265
ThrowException
(nameof(SR.ParserNotAllowedInternalType), type.Name);