48 references to ThrowException
PresentationFramework (48)
System\Windows\Markup\BamlCollectionHolder.cs (5)
133
_reader.
ThrowException
(nameof(SR.ParserParentDO), Parent.ToString());
150
_reader.
ThrowException
(nameof(SR.ParserCantGetDPOrPi), AttributeName);
187
_reader.
ThrowException
(nameof(SR.ParserCantGetProperty), PropertyDefinition.Name);
200
_reader.
ThrowException
(nameof(SR.ParserCantGetDPOrPi), AttributeName);
214
_reader.
ThrowException
(nameof(SR.ParserReadOnlyNullProperty), PropertyDefinition.Name);
System\Windows\Markup\BamlRecordReader.cs (43)
733
ThrowException
(nameof(SR.ParserBamlEvent), bamlRoutedEventRecord.Value);
782
ThrowException
(nameof(SR.ParserUnknownBaml), ((int)bamlRecord.RecordType).ToString(CultureInfo.CurrentCulture));
880
ThrowException
(nameof(SR.ParserNoElementCreate2), elementType.FullName);
1029
ThrowException
(nameof(SR.ParserNoComplexMulti), propName);
1380
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
1818
ThrowException
(nameof(SR.ParserUnexpInBAML), keyRecord.RecordType.ToString(CultureInfo.CurrentCulture));
1950
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2039
ThrowException
(nameof(SR.ParserUnexpInBAML), "BamlLiteralContent" );
2051
ThrowException
(nameof(SR.ParserUnexpInBAML), "PropertyComplexStart");
2087
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2199
ThrowException
(nameof(SR.ParserUnexpInBAML), "PropertyCustom");
2276
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2290
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2305
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2321
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2442
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2490
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2643
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2664
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2904
ThrowException
(nameof(SR.ParserCantGetDPOrPi), propertyDefinition.Name);
2991
ThrowException
(nameof(SR.ParserNoMatchingArray), GetPropertyNameFromAttributeId(attributeId));
3066
ThrowException
(nameof(SR.ParserReadOnlyProp), holder.PropertyDefinition.Name);
3158
ThrowException
(nameof(SR.ParserNullPropertyCollection), holder.PropertyDefinition.Name);
3179
ThrowException
(nameof(SR.ParserPropertyCollectionClosed), holder.PropertyDefinition.Name);
3296
ThrowException
(nameof(SR.ParserNoResource), bamlDefAttributeRecord.Value);
3349
ThrowException
(nameof(SR.ParserUnknownDefAttribute), bamlDefAttributeRecord.Name);
3367
ThrowException
(nameof(SR.ParserNoResource), XamlReaderHelper.DefinitionName);
3483
ThrowException
(nameof(SR.ParserCantCreateInstanceType), CurrentContext.ExpectedType.FullName);
3513
ThrowException
(nameof(SR.ParserNoComplexMulti),
3546
ThrowException
(nameof(SR.ParserNoComplexMulti),
3573
ThrowException
(nameof(SR.ParserNoMatchingIList), "?");
3586
ThrowException
(nameof(SR.ParserNoMatchingIList), "?");
3604
ThrowException
(nameof(SR.ParserUnexpInBAML), "Text");
3633
ThrowException
(nameof(SR.ParserUnknownPresentationOptionsAttribute), bamlPresentationOptionsAttributeRecord.Name);
4233
ThrowException
(nameof(SR.ParserNoResource), resourceNameString);
4239
ThrowException
(nameof(SR.ParserNoResource) , $"{{{resourceNameObject}}}");
4257
ThrowException
(nameof(SR.ParserCantCreateInstanceType), context.ExpectedType.FullName);
4779
ThrowException
( nameof(SR.ParserCannotAddAnyChildren), typeName );
4797
ThrowException
( nameof(SR.ParserCannotAddAnyChildren), typeName );
4947
ThrowException
(nameof(SR.ParserParentDO), value.ToString());
5240
ThrowException
(nameof(SR.ParserNotMarkedPublic), type.Name);
5247
ThrowException
(nameof(SR.ParserNotAllowedInternalType), type.Name);
5286
ThrowException
(nameof(SR.ParserNotAllowedInternalType), type.Name);