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);
2971
ThrowException
(nameof(SR.ParserNoMatchingArray), GetPropertyNameFromAttributeId(attributeId));
3046
ThrowException
(nameof(SR.ParserReadOnlyProp), holder.PropertyDefinition.Name);
3140
ThrowException
(nameof(SR.ParserNullPropertyCollection), holder.PropertyDefinition.Name);
3161
ThrowException
(nameof(SR.ParserPropertyCollectionClosed), holder.PropertyDefinition.Name);
3278
ThrowException
(nameof(SR.ParserNoResource), bamlDefAttributeRecord.Value);
3331
ThrowException
(nameof(SR.ParserUnknownDefAttribute), bamlDefAttributeRecord.Name);
3349
ThrowException
(nameof(SR.ParserNoResource), XamlReaderHelper.DefinitionName);
3465
ThrowException
(nameof(SR.ParserCantCreateInstanceType), CurrentContext.ExpectedType.FullName);
3495
ThrowException
(nameof(SR.ParserNoComplexMulti),
3528
ThrowException
(nameof(SR.ParserNoComplexMulti),
3555
ThrowException
(nameof(SR.ParserNoMatchingIList), "?");
3568
ThrowException
(nameof(SR.ParserNoMatchingIList), "?");
3586
ThrowException
(nameof(SR.ParserUnexpInBAML), "Text");
3615
ThrowException
(nameof(SR.ParserUnknownPresentationOptionsAttribute), bamlPresentationOptionsAttributeRecord.Name);
4214
ThrowException
(nameof(SR.ParserNoResource), resourceNameString);
4220
ThrowException
(nameof(SR.ParserNoResource) , $"{{{resourceNameObject}}}");
4238
ThrowException
(nameof(SR.ParserCantCreateInstanceType), context.ExpectedType.FullName);
4757
ThrowException
( nameof(SR.ParserCannotAddAnyChildren), typeName );
4775
ThrowException
( nameof(SR.ParserCannotAddAnyChildren), typeName );
4925
ThrowException
(nameof(SR.ParserParentDO), value.ToString());
5218
ThrowException
(nameof(SR.ParserNotMarkedPublic), type.Name);
5225
ThrowException
(nameof(SR.ParserNotAllowedInternalType), type.Name);
5264
ThrowException
(nameof(SR.ParserNotAllowedInternalType), type.Name);