560 references to SR
System.Xaml (560)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (14)
334throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 608throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 1081throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 1120throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 1405throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 1480throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 1769throw new InvalidOperationException(SR.FrugalList_CannotPromoteBeyondArray); 2144throw new InvalidOperationException(SR.FrugalList_CannotPromoteBeyondArray);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (8)
353throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 366throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 371throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, attrType.Name)); 431throw new InvalidOperationException(SR.Format(SR.ParserAssemblyLoadVersionMismatch, request, found));
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (32)
239Error(SR.XCRUnknownCompatElement, elementName); 277Error(SR.XCRInvalidACChild, Reader.Name); 327Error(SR.XCRChoiceNotFound); 839Error(SR.XCRCompatCycle, mappedNamespace); 968Error(SR.XCRInvalidFormat, callerContext); 978Error(SR.XCRUndefinedPrefix, prefix); 983Error(SR.XCRInvalidXMLName, pair); 1014Error(SR.XCRUndefinedPrefix, prefix); 1083Error(SR.XCRUnknownCompatAttrib, attributeName); 1166Error(SR.Format(SR.XCRInvalidACChild, Reader.Name)); 1171Error(SR.XCRChoiceNotFound); 1201Error(SR.XCRChoiceOnlyInAC); 1206Error(SR.XCRChoiceAfterFallback); 1214Error(SR.XCRRequiresAttribNotFound); 1219Error(SR.XCRInvalidRequiresAttribute); 1239Error(SR.XCRInvalidAttribInElement, attributeName, Choice); 1271Error(SR.XCRInvalidRequiresAttribute); 1314Error(SR.XCRFallbackOnlyInAC); 1319Error(SR.XCRChoiceNotFound); 1324Error(SR.XCRMultipleFallbackFound); 1342Error(SR.XCRInvalidAttribInElement, attributeName, Fallback); 1413Error(SR.XCRMustUnderstandFailed, namespaceUri); 1888_reader.Error(SR.XCRNSProcessContentNotIgnorable, key); 1899_reader.Error(SR.XCRNSPreserveNotIgnorable, key); 1910_reader.Error(SR.XCRNSPreserveNotIgnorable, key); 1941_reader.Error(SR.XCRDuplicateWildcardProcessContent, _namespaceName); 1945_reader.Error(SR.XCRDuplicateProcessContent, _namespaceName, elementName); 1953_reader.Error(SR.XCRInvalidProcessContent, _namespaceName); 1996_reader.Error(SR.XCRDuplicateWildcardPreserve, _namespaceName); 2000_reader.Error(SR.XCRDuplicatePreserve, itemName, _namespaceName); 2008_reader.Error(SR.XCRInvalidPreserve, _namespaceName);
System\Windows\Markup\ArrayExtension.cs (3)
85throw new InvalidOperationException(SR.MarkupExtensionArrayType); 97throw new InvalidOperationException(SR.Format(SR.MarkupExtensionArrayBadType, Type.Name));
System\Windows\Markup\NameReferenceConverter.cs (3)
32throw new InvalidOperationException(SR.MissingNameResolver); 38throw new InvalidOperationException(SR.MustHaveName); 72throw new InvalidOperationException(SR.MissingNameProvider);
System\Windows\Markup\Reference.cs (2)
32throw new InvalidOperationException(SR.MissingNameResolver); 36throw new InvalidOperationException(SR.MustHaveName);
System\Windows\Markup\StaticExtension.cs (11)
52throw new InvalidOperationException(SR.MarkupExtensionStaticMember); 69throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, _member)); 76throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, _member)); 86throw new ArgumentException(SR.Format(SR.MarkupExtensionNoContext, GetType().Name, nameof(IXamlTypeResolver))); 96throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, _member)); 112throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, typeNameForError is not null ? $"{typeNameForError}.{_member}" : _member));
System\Windows\Markup\StaticExtensionsToInstanceDescriptorsConverter.cs (2)
34throw new ArgumentException(SR.Format(SR.MustBeOfType, nameof(value), nameof(StaticExtension)));
System\Windows\Markup\TypeExtension.cs (5)
64throw new InvalidOperationException(SR.MarkupExtensionTypeName); 73throw new InvalidOperationException(SR.Format(SR.MarkupExtensionNoContext, GetType().Name, nameof(IXamlTypeResolver))); 80throw new InvalidOperationException(SR.Format(SR.MarkupExtensionTypeNameBad, _typeName));
System\Windows\Markup\TypeExtensionConverter.cs (2)
34throw new ArgumentException(SR.Format(SR.MustBeOfType, nameof(value), nameof(TypeExtension)));
System\Windows\Markup\ValueSerializer.cs (6)
243text = SR.ToStringNull; 249return new NotSupportedException(SR.Format(SR.ConvertToException, base.GetType().Name, text, destinationType.FullName)); 260text = SR.ToStringNull; 266return new NotSupportedException(SR.Format(SR.ConvertFromException, base.GetType().Name, text));
System\Xaml\AttachablePropertyServices.cs (1)
203throw new InvalidOperationException(SR.DefaultAttachablePropertyStoreCannotAddInstance);
System\Xaml\Context\NameFixupGraph.cs (5)
478exceptionMessage.Append(SR.ProvideValueCycle); 487exceptionMessage.Append(SR.Format(SR.LineNumberAndPosition, meName, token.LineNumber, token.LinePosition)); 491exceptionMessage.Append(SR.Format(SR.LineNumberOnly, meName, token.LineNumber));
System\Xaml\Context\ObjectWriterContext.cs (7)
170throw new XamlParseException(SR.Format(SR.TypeNotFound, xamlType.GetQualifiedName())); 319throw new ArgumentException(SR.Format(SR.NotAmbientProperty, xamlMember.DeclaringType.Name, xamlMember.Name), nameof(properties)); 436throw new ArgumentException(SR.Format(SR.NotAmbientType, xamlType.Name), nameof(types)); 883throw new InvalidOperationException(SR.NameScopeOnRootInstance);
System\Xaml\Context\ServiceProviderContext.cs (12)
126set { throw new InvalidOperationException(SR.MustNotCallSetter); } 142throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "properties")); 158throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "types")); 176throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "properties")); 192throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "types")); 212throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "properties")); 296throw new ArgumentException(SR.SimpleFixupsMustHaveOneName, nameof(names));
System\Xaml\Context\XamlContext.cs (6)
81throw new XamlInternalException(SR.Format(SR.ParentlessPropertyElement, propName.ScopedName)); 88throw new XamlParseException(SR.Format(SR.PrefixNotFound, propName.Prefix)); 241throw new XamlParseException(SR.Format(SR.PrefixNotFound, typeName.Prefix));
System\Xaml\InfosetObjects\DeferredWriter.cs (28)
83throw new XamlInternalException(SR.Format(SR.TemplateNotCollected, methodName)); 104throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), methodName)); 117throw new XamlInternalException(SR.Format(SR.TemplateNotCollected, "WriteEndObject")); 133throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), "WriteEndObject")); 153throw new XamlInternalException(SR.Format(SR.TemplateNotCollected, "WriteMember")); 161throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), "WriteMember")); 174throw new XamlInternalException(SR.Format(SR.TemplateNotCollected, "WriteEndMember")); 182throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), "WriteEndMember")); 195throw new XamlInternalException(SR.Format(SR.TemplateNotCollected, "WriteValue")); 220throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), "WriteValue")); 232throw new XamlInternalException(SR.Format(SR.TemplateNotCollected, "WriteNamespace")); 245throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), "WriteNamespace")); 286throw new XamlInternalException(SR.Format(SR.TemplateNotCollected, nameof(SetLineInfo))); 301throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), nameof(SetLineInfo)));
System\Xaml\InfosetObjects\XamlObjectWriter.cs (91)
67throw new ArgumentException(SR.SavedContextSchemaContextNull, nameof(savedContext)); 80throw new ArgumentException(SR.SavedContextSchemaContextMismatch, nameof(schemaContext)); 266string err = SR.ValueMustBeFollowedByEndMember; 279? SR.Format(SR.NoPropertyInCurrentFrame_GO, xamlType.ToString()) 280: SR.NoPropertyInCurrentFrame_GO_noType; 305_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name))); 335string err = SR.ValueMustBeFollowedByEndMember; 340string err = SR.Format(SR.CantCreateUnknownType, xamlType.GetQualifiedName()); 346string err = SR.Format(SR.NoPropertyInCurrentFrame_SO, xamlType.ToString(), 375throw new XamlParseException(SR.Format(SR.CantAssignRootInstance, 411string err = SR.ValueMustBeFollowedByEndMember; 416string err = SR.NoTypeInCurrentFrame_EO; 421string err = SR.Format(SR.OpenPropertyInCurrentFrame_EO, _context.CurrentType.ToString(), 581err = SR.ValueMustBeFollowedByEndMember; 585err = SR.Format(SR.TypeHasNoContentProperty, _context.CurrentType); 589err = SR.Format(SR.CantSetUnknownProperty, property.ToString()); 593err = SR.Format(SR.OpenPropertyInCurrentFrame_SM, _context.CurrentType.ToString(), 599err = SR.Format(SR.NoTypeInCurrentFrame_SM, property.ToString()); 638throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.LateConstructionDirective, property.Name))); 647throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.SettingPropertiesIsNotAllowed, property.Name))); 655throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.AttachedPropOnFwdRefTC, 705? SR.Format(SR.NoPropertyInCurrentFrame_EM, _context.CurrentType.ToString()) 706: SR.NoPropertyInCurrentFrame_EM_noType; 832? SR.Format(SR.NoPropertyInCurrentFrame_V, value, _context.CurrentType.ToString()) 833: SR.Format(SR.NoPropertyInCurrentFrame_V_noType, value); 884throw new ArgumentException(SR.NamespaceDeclarationPrefixCannotBeNull); 888throw new ArgumentException(SR.NamespaceDeclarationNamespaceCannotBeNull); 903string err = SR.ValueMustBeFollowedByEndMember; 908string err = SR.Format(SR.NoPropertyInCurrentFrame_NS, namespaceDeclaration.Prefix, 1055throw lineInfo.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.MissingKey, instanceType.Name))); 1066throw new InvalidOperationException(SR.Format(SR.ObjectWriterTypeNotAllowed, 1120throw ctx.WithLineInfo(new XamlInternalException(SR.ConstructImplicitType)); 1152string errMsg = string.Format(TypeConverterHelper.InvariantEnglishUS, SR.InvalidExpression, factoryMethodName); 1167throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.CannotResolveTypeForFactoryMethod, ownerTypeName, propertyName.Name))); 1178throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.NotAssignableFrom, currentType.GetQualifiedName(), instType.GetQualifiedName()))); 1211throw ctx.WithLineInfo(new XamlInternalException(SR.NonMEWithPositionalParameters)); 1221string msg = string.Format(TypeConverterHelper.InvariantEnglishUS, SR.NoSuchConstructor, rawArgs.Count, meType.Name); 1230throw ctx.WithLineInfo(new XamlInternalException(SR.PositionalParamsWrongLength)); 1253string err = SR.Format(SR.CantCreateUnknownType, xamlType.GetQualifiedName()); 1258throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.InitializationSyntaxWithoutTypeConverter, xamlType.GetQualifiedName()))); 1299string err = SR.Format(SR.TypeConverterFailed, targetName, value); 1638throw new XamlObjectWriterException(SR.CannotSetBaseUri); 1862Debug.WriteLine(SR.Format(SR.DictionaryFirstChanceException, ctx.ParentType, key, ctx.ParentType.KeyType)); 1970string msg = SR.Format(SR.ForwardRefDirectives, names); 2007string msg = SR.Format(SR.ForwardRefDirectives, names); 2060string msg = SR.Format(SR.ForwardRefDirectives, names); 2077throw new XamlInternalException(SR.BadStateObjectWriter); 2151throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.NameScopeException, ex.Message), ex)); 2181throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveNotAtRoot, XamlLanguage.Class))); 2186throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveMustBeString, XamlLanguage.Class))); 2199throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.XClassMustMatchRootInstance, className, rootInstanceType.FullName))); 2218throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.TransitiveForwardRefDirectives, 2322exceptionMessage.Append(SR.Format(SR.UnresolvedForwardReferences, token.NeededNames[0])); 2327exceptionMessage.Append(SR.Format(SR.LineNumberAndPosition, string.Empty, token.LineNumber, token.LinePosition)); 2329exceptionMessage.Append(SR.Format(SR.LineNumberOnly, string.Empty, token.LineNumber));
System\Xaml\MS\Impl\XmlNsInfo.cs (16)
190throw new XamlSchemaException(SR.Format(SR.BadXmlnsDefinition, assembly.FullName)); 271throw new XamlSchemaException(SR.Format(SR.BadInternalsVisibleTo1, assembly.FullName)); 279throw new XamlSchemaException(SR.Format(SR.BadInternalsVisibleTo2, assemblyName, assembly.FullName), ex); 284throw new XamlSchemaException(SR.Format(SR.BadInternalsVisibleTo2, assemblyName, assembly.FullName), ex); 329throw new XamlSchemaException(SR.Format(SR.BadXmlnsCompat, assembly.FullName)); 334throw new XamlSchemaException(SR.Format(SR.DuplicateXmlnsCompat, assembly.FullName, oldns)); 378throw new XamlSchemaException(SR.Format(SR.BadXmlnsPrefix, assembly.FullName)); 454throw new XamlSchemaException(SR.Format(SR.XmlnsCompatCycle, assembly.FullName, ns));
System\Xaml\NameScope.cs (14)
35throw new ArgumentException(SR.NameScopeNameNotEmptyString); 40throw new ArgumentException(SR.Format(SR.NameScopeInvalidIdentifierName, name)); 58throw new ArgumentException(SR.Format(SR.NameScopeDuplicateNamesNotAllowed, name)); 73throw new ArgumentException(SR.NameScopeNameNotEmptyString); 78throw new ArgumentException(SR.Format(SR.NameScopeNameNotFound, name)); 146throw new ArgumentException(SR.Format(SR.ReferenceIsNull, "item.Key"), nameof(item)); 150throw new ArgumentException(SR.Format(SR.ReferenceIsNull, "item.Value"), nameof(item)); 160throw new ArgumentException(SR.Format(SR.ReferenceIsNull, "item.Key"), nameof(item));
System\Xaml\NameScopeDictionary.cs (9)
45throw new ArgumentException(SR.NameScopeNameNotEmptyString); 49throw new ArgumentException(SR.Format(SR.NameScopeInvalidIdentifierName, name)); 74throw new ArgumentException(SR.Format(SR.NameScopeDuplicateNamesNotAllowed, name)); 85throw new ArgumentException(SR.NameScopeNameNotEmptyString); 100throw new ArgumentException(SR.Format(SR.NameScopeNameNotFound, name)); 110throw new ArgumentException(SR.NameScopeNameNotEmptyString);
System\Xaml\Parser\GenericTypeNameParser.cs (14)
57error = SR.Format(SR.InvalidTypeString, text); 64error = SR.Format(SR.PrefixNotFound, prefix); 253throw new TypeNameParserException(SR.Format(SR.InvalidCharInTypeName, _scanner.ErrorCurrentChar, _inputText)); 269frame.Namespace = ns ?? throw new TypeNameParserException(SR.Format(SR.PrefixNotFound, prefix)); 296throw new TypeNameParserException(SR.Format(SR.InvalidTypeString, _inputText)); 302throw new TypeNameParserException(SR.Format(SR.InvalidTypeString, _inputText)); 313throw new TypeNameParserException(SR.Format(SR.InvalidTypeString, _inputText));
System\Xaml\Parser\MePullParser.cs (8)
58throw new XamlParseException(_tokenizer, SR.UnexpectedTokenAfterME); 62throw new XamlParseException(_tokenizer, SR.WhitespaceAfterME); 70_brokenRule = SR.Format(SR.UnexpectedToken, 413error = SR.Format(SR.MissingComma1, _tokenizer.TokenText); 417error = SR.Format(SR.MissingComma2, _context.CurrentMember.Name, _tokenizer.TokenText);
System\Xaml\Parser\MeScanner.cs (8)
317throw new ArgumentException(SR.MalformedPropertyName); 395throw new XamlParseException(this, SR.Format(SR.InvalidClosingBracketCharacers, ch.ToString())); 459throw new XamlParseException(this, SR.QuoteCharactersOutOfPlace); 483throw new XamlParseException(this, SR.UnexpectedTokenAfterME); 489throw new XamlParseException(this, SR.Format(SR.MalformedBracketCharacters, ch.ToString())); 503throw new XamlParseException(this, SR.UnclosedQuote);
System\Xaml\Parser\XamlPullParser.cs (2)
1198: base(xamlScanner, SR.Format(SR.UnexpectedNodeType, nodetype.ToString(), parseRule)) { }
System\Xaml\Parser\XamlScanner.cs (5)
252throw LineInfo(new XamlParseException(SR.Format(SR.ParentlessPropertyElement, _xmlReader.Name))); 563throw new XamlParseException(SR.Format(SR.InvalidXamlMemberName, xmlName)); 784throw new XamlInternalException(SR.AttributeUnhandledKind);
System\Xaml\Runtime\ClrObjectRuntime.cs (63)
49throw CreateException(SR.Format(SR.CannotCreateBadType, xamlType.Name)); 57throw CreateException(SR.Format(SR.NoConstructor, xamlType.UnderlyingType), ex); 65throw CreateException(SR.Format(SR.ConstructorInvocation, xamlType.UnderlyingType), UnwrapTargetInvocationException(ex)); 79throw CreateException((SR.Format(SR.CannotResolveTypeForFactoryMethod, xamlType, methodName))); 94throw CreateException(SR.Format(SR.MethodInvocation, qMethodName), UnwrapTargetInvocationException(e)); 100throw CreateException(SR.Format(SR.FactoryReturnedNull, qMethodName)); 167throw CreateException(SR.Format(SR.TypeConverterFailed2, instance, typeof(string)), ex); 183throw CreateException(SR.Format(SR.CanConvertFromFailed, typeof(T), converter.GetType()), ex); 199throw CreateException(SR.Format(SR.CanConvertToFailed, type, converter.GetType()), ex); 215throw CreateException(SR.Format(SR.TypeConverterFailed2, instance, typeof(string)), ex); 231throw CreateException(SR.Format(SR.TypeConverterFailed2, instance, typeof(T)), ex); 266throw CreateException(SR.Format(SR.GetValue, property), UnwrapTargetInvocationException(e)); 292throw CreateException(SR.Format(SR.SetValue, property), UnwrapTargetInvocationException(e)); 313throw CreateException(SR.Format(SR.AddCollection, collectionType), UnwrapTargetInvocationException(e)); 329throw CreateException(SR.Format(SR.AddDictionary, dictionaryType), UnwrapTargetInvocationException(e)); 351throw CreateException(SR.Format(SR.GetItemsException, collectionType), ex); 396throw CreateException(SR.Format(SR.GetItemsException, dictionaryType), ex); 412throw CreateException(SR.Format(SR.APSException, instance)); 435throw CreateException(SR.Format(SR.APSException, instance)); 455throw CreateException(SR.SetConnectionId, e); 482throw CreateException(SR.Format(SR.InitializationGuard, xamlType), e); 499throw CreateException(SR.Format(SR.ProvideValue, me.GetType()), e); 519throw CreateException(SR.Format(SR.AddDictionary, xamlType), e); 531throw CreateException((SR.Format(SR.XmlDataNull, property.Name))); 537throw new XamlInternalException(SR.Format(SR.XmlValueNotReader, property.Name)); 549throw CreateException(SR.Format(SR.SetXmlInstance, property), e); 567throw new XamlObjectWriterException(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader)); 583throw CreateException(SR.DeferredLoad, e); 596throw new XamlObjectWriterException(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader)); 606throw CreateException(SR.DeferredSave, e); 622throw CreateException(SR.Format(SR.ShouldSerializeFailed, member)); 703throw CreateException(SR.Format(SR.GetItemsException, collectionType), UnwrapTargetInvocationException(ex)); 707throw CreateException(SR.Format(SR.GetItemsReturnedNull, collectionType));
System\Xaml\Runtime\DynamicMethodRuntime.cs (4)
235throw new NotSupportedException(SR.Format(SR.CantGetWriteonlyProperty, member)); 252throw new NotSupportedException(SR.Format(SR.CantSetReadonlyProperty, member));
System\Xaml\Schema\CollectionReflector.cs (4)
90throw new XamlSchemaException(SR.Format(SR.AmbiguousCollectionItemType, type)); 97throw new XamlSchemaException(SR.Format(SR.AmbiguousDictionaryItemType, type));
System\Xaml\Schema\Reflector.cs (2)
508throw new XamlSchemaException(SR.Format(SR.UnexpectedConstructorArg,
System\Xaml\Schema\TypeReflector.cs (2)
1058string message = SR.Format(SR.TooManyAttributesOnType,
System\Xaml\Schema\XamlDirective.cs (1)
47throw new ArgumentException(SR.CollectionCannotContainNulls, nameof(xamlNamespaces));
System\Xaml\Schema\XamlMemberInvoker.cs (7)
60throw new NotSupportedException(SR.Format(SR.CantGetWriteonlyProperty, _member)); 79throw new NotSupportedException(SR.Format(SR.CantSetReadonlyProperty, _member)); 173throw new NotSupportedException(SR.NotSupportedOnUnknownMember); 181throw new NotSupportedException(SR.NotSupportedOnDirective); 186throw new NotSupportedException(SR.NotSupportedOnDirective);
System\Xaml\Schema\XamlTypeInvoker.cs (10)
78throw new NotSupportedException(SR.OnlySupportedOnCollections); 92throw new XamlSchemaException(SR.Format(SR.NoAddMethodFound, _xamlType, itemType)); 110throw new NotSupportedException(SR.OnlySupportedOnDictionaries); 124throw new XamlSchemaException(SR.Format(SR.NoAddMethodFound, _xamlType, itemType)); 223throw new NotSupportedException(SR.OnlySupportedOnCollectionsAndDictionaries); 268throw new NotSupportedException(SR.NotSupportedOnUnknownType); 328throw new MissingMethodException(SR.Format(SR.NoDefaultConstructor, underlyingType.FullName));
System\Xaml\Schema\XamlValueConverter.cs (4)
34throw new ArgumentException(SR.Format(SR.ArgumentRequired, $"{nameof(converterType)}, {nameof(targetType)}, {nameof(name)}")); 82throw new XamlSchemaException(SR.Format(SR.ConverterMustDeriveFromBase,
System\Xaml\WriterDelegate.cs (2)
77_addDelegate = delegate { throw new XamlException(SR.WriterIsClosed); }; 80_addLineInfoDelegate = delegate { throw new XamlException(SR.WriterIsClosed); };
System\Xaml\XamlBackgroundReader.cs (1)
89throw new InvalidOperationException(SR.ThreadAlreadyStarted);
System\Xaml\XamlException.cs (6)
48return SR.Format(SR.LineNumberAndPosition, base.Message, LineNumber, LinePosition); 50return SR.Format(SR.LineNumberOnly, base.Message, LineNumber); 150: base(SR.Format(SR.DuplicateMemberSet, (member != null) ? member.Name : null, (type != null) ? type.Name : null))
System\Xaml\XamlMarkupExtensionWriter.cs (11)
138throw new InvalidOperationException(SR.Format(SR.XamlMarkupExtensionWriterDuplicateMember, property.Name)); 180throw new ArgumentException(SR.XamlMarkupExtensionWriterCannotWriteNonstringValue); 337throw new InvalidOperationException(SR.XamlMarkupExtensionWriterInputInvalid); 344throw new InvalidOperationException(SR.XamlMarkupExtensionWriterInputInvalid); 358throw new InvalidOperationException(SR.XamlMarkupExtensionWriterInputInvalid); 376throw new InvalidOperationException(SR.XamlMarkupExtensionWriterInputInvalid); 383throw new InvalidOperationException(SR.XamlMarkupExtensionWriterInputInvalid); 548throw new InvalidOperationException(SR.XamlMarkupExtensionWriterInputInvalid); 605throw new InvalidOperationException(SR.XamlMarkupExtensionWriterInputInvalid); 612throw new InvalidOperationException(SR.XamlMarkupExtensionWriterInputInvalid);
System\Xaml\XamlMember.cs (3)
110throw new ArgumentNullException(SR.GetterOrSetterRequired, (Exception)null); 807throw new ArgumentException(SR.IncorrectGetterParamNum, argumentName); 815throw new ArgumentException(SR.IncorrectSetterParamNum, argumentName);
System\Xaml\XamlNodeList.cs (5)
60throw new XamlException(SR.CloseXamlWriterBeforeReading); 64throw new XamlException(SR.SchemaContextNotInitialized); 84throw new XamlException(SR.CannotWriteClosedWriter); 92throw new XamlException(SR.CannotWriteClosedWriter); 107throw new XamlException(SR.CloseXamlWriterBeforeReading);
System\Xaml\XamlObjectReader.cs (39)
317throw new InvalidOperationException(SR.ExpectedObjectMarkupInfo); 350throw new XamlObjectReaderException(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader)); 915throw new InvalidOperationException(SR.Format(SR.AttachedPropertyOnTypeConvertedOrStringProperty, property.Name, value.ToString(), props[0].Key.ToString())); 919throw new InvalidOperationException(SR.Format(SR.AttachedPropertyOnDictionaryKey, value.ToString(), props[0].Key.ToString())); 1264throw new XamlObjectReaderException(SR.ObjectReaderInstanceDescriptorIncompatibleArguments); 1270throw new XamlObjectReaderException(SR.ObjectReaderInstanceDescriptorInvalidMethod); 1277throw new XamlObjectReaderException(SR.ObjectReaderInstanceDescriptorIncompatibleArguments); 1291throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderInstanceDescriptorIncompatibleArgumentTypes, "null", parameterInfo.ParameterType)); 1297throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderInstanceDescriptorIncompatibleArgumentTypes, argument.GetType(), parameterInfo.ParameterType)); 1698throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderNoDefaultConstructor, value.GetType())); 1700throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderNoMatchingConstructor, value.GetType())); 1722throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderTypeIsNested, xamlType.Name)); 1726throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderTypeCannotRoundtrip, xamlType.Name)); 1777throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderXamlNamedElementAlreadyRegistered, Name)); 1802throw new XamlObjectReaderException(SR.ObjectReaderMultidimensionalArrayNotSupported); 1880throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderAttachedPropertyNotFound, owningType, ap.Key.MemberName)); 2135throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderXamlNamePropertyMustBeString, property.Name, property.DeclaringType)); 2632throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderTypeNotAllowed, 2643throw new XamlObjectReaderException(SR.Format(SR.ObjectReader_TypeNotVisible, clrType.FullName)); 2883throw new XamlObjectReaderException(SR.Format(SR.XamlFactoryInvalidXamlNode, reader.NodeType)); 2894throw new XamlObjectReaderException(SR.Format(SR.XamlFactoryInvalidXamlNode, reader.NodeType)); 2933throw new InvalidOperationException(SR.Format(SR.XamlFactoryInvalidXamlNode, reader.NodeType));
System\Xaml\XamlSchemaContext.cs (10)
271throw new ArgumentException(SR.Format(SR.ReferenceIsNull, "xamlTypeName.Name"), nameof(xamlTypeName)); 275throw new ArgumentException(SR.Format(SR.ReferenceIsNull, "xamlTypeName.Namespace"), nameof(xamlTypeName)); 286throw new ArgumentException(SR.Format(SR.CollectionCannotContainNulls, "xamlTypeName.TypeArguments")); 308throw new ArgumentException(SR.Format(SR.CollectionCannotContainNulls, "typeArguments")); 453throw new XamlSchemaException(SR.Format(SR.DuplicateXmlnsCompatAcrossAssemblies,
System\Xaml\XamlServices.cs (1)
146throw new ArgumentException(SR.StringIsNullOrEmpty, nameof(fileName));
System\Xaml\XamlType.cs (6)
1480throw new ArgumentException(SR.Format(SR.CollectionCannotContainNulls, "typeArguments")); 1596throw new XamlSchemaException(SR.Format(SR.MarkupExtensionWithDuplicateArity, UnderlyingType, typeVector.Length)); 1646string err = SR.Format(SR.UsableDuringInitializationOnME, this);
System\Xaml\XamlTypeName.cs (4)
208throw new InvalidOperationException(SR.XamlTypeNameNamespaceIsNull); 212throw new InvalidOperationException(SR.XamlTypeNameNameIsNullOrEmpty); 225throw new InvalidOperationException(SR.Format(SR.XamlTypeNameCannotGetPrefix, Namespace));
System\Xaml\XamlWriter.cs (1)
60throw new NotImplementedException(SR.MissingCaseXamlNodes);
System\Xaml\XamlXmlWriter.cs (60)
169throw new ArgumentException(SR.Format(SR.TypeHasInvalidXamlName, type.Name), nameof(type)); 194throw new ArgumentException(SR.Format(SR.MemberHasInvalidXamlName, property.Name), nameof(property)); 219throw new ArgumentException(SR.XamlXmlWriterCannotWriteNonstringValue, nameof(value)); 233throw new ArgumentException(SR.NamespaceDeclarationPrefixCannotBeNull, nameof(namespaceDeclaration)); 238throw new ArgumentException(SR.NamespaceDeclarationNamespaceCannotBeNull, nameof(namespaceDeclaration)); 243throw new ArgumentException(SR.NamespaceDeclarationCannotBeXml, nameof(namespaceDeclaration)); 395throw new InvalidOperationException(SR.Format(SR.PrefixNotInFrames, prefix)); 511throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterDuplicateMember, property.Name)); 735throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterPrefixAlreadyDefinedInCurrentScope, prefix)); 740throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterNamespaceAlreadyHasPrefixInCurrentScope, ns)); 773throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteObject")); 778throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteEndObject")); 783throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteStartMember")); 788throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteEndMember")); 793throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteValue")); 798throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteNamespace")); 924throw new NotSupportedException(SR.MissingCaseXamlNodes); 954throw new XamlXmlWriterException(SR.XamlXmlWriterWriteObjectNotSupportedInCurrentState); 1029throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteStartMember")); 1036throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteStartMember")); 1061throw new XamlXmlWriterException(SR.ExpandPositionalParametersinTypeWithNoDefaultConstructor); 1080throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteEndObject")); 1169throw new XamlXmlWriterException(SR.ExpandPositionalParametersinTypeWithNoDefaultConstructor); 1239throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteValue")); 1276throw new InvalidOperationException(SR.Format(SR.WhiteSpaceInCollection, value, containingXamlType.Name)); 1316throw new XamlXmlWriterException(SR.Format(SR.CannotWriteXmlSpacePreserveOnMember, frameWithXmlSpacePreserve.Member, value)); 1369throw new InvalidOperationException(SR.XamlXmlWriterWriteObjectNotSupportedInCurrentState); 1381throw new InvalidOperationException(SR.XamlXmlWriterIsObjectFromMemberSetForArraysOrNonCollections); 1474throw new InvalidOperationException(SR.Format(SR.WhiteSpaceInCollection, writer.deferredValue, containingXamlType.Name)); 1893throw new XamlXmlWriterException(SR.Format( 1894SR.ExpandPositionalParametersWithoutUnderlyingType, objectXamlType.GetQualifiedName())); 1905throw new XamlXmlWriterException(SR.ConstructorNotFoundForGivenPositionalParameters); 1925throw new XamlXmlWriterException(SR.ConstructorNotFoundForGivenPositionalParameters); 1933throw new XamlXmlWriterException(SR.ExpandPositionalParametersWithReadOnlyProperties); 1946throw new XamlXmlWriterException(SR.ConstructorNotFoundForGivenPositionalParameters); 1961throw new XamlXmlWriterException(SR.ConstructorNotFoundForGivenPositionalParameters); 1969throw new XamlXmlWriterException(SR.ConstructorNotFoundForGivenPositionalParameters); 2019throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, operation)); 2044throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteGetObject"));