48 references to ThrowException
PresentationFramework (48)
System\Windows\Markup\BamlCollectionHolder.cs (5)
131
_reader.
ThrowException
(nameof(SR.ParserParentDO), Parent.ToString());
148
_reader.
ThrowException
(nameof(SR.ParserCantGetDPOrPi), AttributeName);
185
_reader.
ThrowException
(nameof(SR.ParserCantGetProperty), PropertyDefinition.Name);
198
_reader.
ThrowException
(nameof(SR.ParserCantGetDPOrPi), AttributeName);
212
_reader.
ThrowException
(nameof(SR.ParserReadOnlyNullProperty), PropertyDefinition.Name);
System\Windows\Markup\BamlRecordReader.cs (43)
714
ThrowException
(nameof(SR.ParserBamlEvent), bamlRoutedEventRecord.Value);
763
ThrowException
(nameof(SR.ParserUnknownBaml), ((int)bamlRecord.RecordType).ToString(CultureInfo.CurrentCulture));
861
ThrowException
(nameof(SR.ParserNoElementCreate2), elementType.FullName);
1010
ThrowException
(nameof(SR.ParserNoComplexMulti), propName);
1361
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
1799
ThrowException
(nameof(SR.ParserUnexpInBAML), keyRecord.RecordType.ToString(CultureInfo.CurrentCulture));
1931
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2020
ThrowException
(nameof(SR.ParserUnexpInBAML), "BamlLiteralContent" );
2032
ThrowException
(nameof(SR.ParserUnexpInBAML), "PropertyComplexStart");
2068
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2180
ThrowException
(nameof(SR.ParserUnexpInBAML), "PropertyCustom");
2257
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2271
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2286
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2302
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2425
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2473
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2626
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2647
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2887
ThrowException
(nameof(SR.ParserCantGetDPOrPi), propertyDefinition.Name);
2968
ThrowException
(nameof(SR.ParserNoMatchingArray), GetPropertyNameFromAttributeId(attributeId));
3043
ThrowException
(nameof(SR.ParserReadOnlyProp), holder.PropertyDefinition.Name);
3137
ThrowException
(nameof(SR.ParserNullPropertyCollection), holder.PropertyDefinition.Name);
3158
ThrowException
(nameof(SR.ParserPropertyCollectionClosed), holder.PropertyDefinition.Name);
3275
ThrowException
(nameof(SR.ParserNoResource), bamlDefAttributeRecord.Value);
3328
ThrowException
(nameof(SR.ParserUnknownDefAttribute), bamlDefAttributeRecord.Name);
3346
ThrowException
(nameof(SR.ParserNoResource), XamlReaderHelper.DefinitionName);
3459
ThrowException
(nameof(SR.ParserCantCreateInstanceType), CurrentContext.ExpectedType.FullName);
3489
ThrowException
(nameof(SR.ParserNoComplexMulti),
3522
ThrowException
(nameof(SR.ParserNoComplexMulti),
3549
ThrowException
(nameof(SR.ParserNoMatchingIList), "?");
3562
ThrowException
(nameof(SR.ParserNoMatchingIList), "?");
3580
ThrowException
(nameof(SR.ParserUnexpInBAML), "Text");
3609
ThrowException
(nameof(SR.ParserUnknownPresentationOptionsAttribute), bamlPresentationOptionsAttributeRecord.Name);
4208
ThrowException
(nameof(SR.ParserNoResource), resourceNameString);
4214
ThrowException
(nameof(SR.ParserNoResource) , $"{{{resourceNameObject}}}");
4232
ThrowException
(nameof(SR.ParserCantCreateInstanceType), context.ExpectedType.FullName);
4751
ThrowException
( nameof(SR.ParserCannotAddAnyChildren), typeName );
4769
ThrowException
( nameof(SR.ParserCannotAddAnyChildren), typeName );
4919
ThrowException
(nameof(SR.ParserParentDO), value.ToString());
5212
ThrowException
(nameof(SR.ParserNotMarkedPublic), type.Name);
5219
ThrowException
(nameof(SR.ParserNotAllowedInternalType), type.Name);
5258
ThrowException
(nameof(SR.ParserNotAllowedInternalType), type.Name);