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)
718
ThrowException
(nameof(SR.ParserBamlEvent), bamlRoutedEventRecord.Value);
767
ThrowException
(nameof(SR.ParserUnknownBaml), ((int)bamlRecord.RecordType).ToString(CultureInfo.CurrentCulture));
865
ThrowException
(nameof(SR.ParserNoElementCreate2), elementType.FullName);
1014
ThrowException
(nameof(SR.ParserNoComplexMulti), propName);
1365
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
1803
ThrowException
(nameof(SR.ParserUnexpInBAML), keyRecord.RecordType.ToString(CultureInfo.CurrentCulture));
1935
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2024
ThrowException
(nameof(SR.ParserUnexpInBAML), "BamlLiteralContent" );
2036
ThrowException
(nameof(SR.ParserUnexpInBAML), "PropertyComplexStart");
2072
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2184
ThrowException
(nameof(SR.ParserUnexpInBAML), "PropertyCustom");
2261
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2275
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2290
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2306
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2429
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2477
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2630
ThrowException
(nameof(SR.ParserUnexpInBAML), "Property");
2651
ThrowException
(nameof(SR.ParserCantGetDPOrPi), GetPropertyNameFromAttributeId(attributeId));
2891
ThrowException
(nameof(SR.ParserCantGetDPOrPi), propertyDefinition.Name);
2978
ThrowException
(nameof(SR.ParserNoMatchingArray), GetPropertyNameFromAttributeId(attributeId));
3053
ThrowException
(nameof(SR.ParserReadOnlyProp), holder.PropertyDefinition.Name);
3147
ThrowException
(nameof(SR.ParserNullPropertyCollection), holder.PropertyDefinition.Name);
3168
ThrowException
(nameof(SR.ParserPropertyCollectionClosed), holder.PropertyDefinition.Name);
3285
ThrowException
(nameof(SR.ParserNoResource), bamlDefAttributeRecord.Value);
3338
ThrowException
(nameof(SR.ParserUnknownDefAttribute), bamlDefAttributeRecord.Name);
3356
ThrowException
(nameof(SR.ParserNoResource), XamlReaderHelper.DefinitionName);
3472
ThrowException
(nameof(SR.ParserCantCreateInstanceType), CurrentContext.ExpectedType.FullName);
3502
ThrowException
(nameof(SR.ParserNoComplexMulti),
3535
ThrowException
(nameof(SR.ParserNoComplexMulti),
3562
ThrowException
(nameof(SR.ParserNoMatchingIList), "?");
3575
ThrowException
(nameof(SR.ParserNoMatchingIList), "?");
3593
ThrowException
(nameof(SR.ParserUnexpInBAML), "Text");
3622
ThrowException
(nameof(SR.ParserUnknownPresentationOptionsAttribute), bamlPresentationOptionsAttributeRecord.Name);
4221
ThrowException
(nameof(SR.ParserNoResource), resourceNameString);
4227
ThrowException
(nameof(SR.ParserNoResource) , $"{{{resourceNameObject}}}");
4245
ThrowException
(nameof(SR.ParserCantCreateInstanceType), context.ExpectedType.FullName);
4767
ThrowException
( nameof(SR.ParserCannotAddAnyChildren), typeName );
4785
ThrowException
( nameof(SR.ParserCannotAddAnyChildren), typeName );
4935
ThrowException
(nameof(SR.ParserParentDO), value.ToString());
5228
ThrowException
(nameof(SR.ParserNotMarkedPublic), type.Name);
5235
ThrowException
(nameof(SR.ParserNotAllowedInternalType), type.Name);
5274
ThrowException
(nameof(SR.ParserNotAllowedInternalType), type.Name);