560 references to SR
System.Xaml (560)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (14)
331throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 612throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 1096throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 1135throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 1424throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 1499throw new ArgumentException(SR.Format(SR.FrugalList_TargetMapCannotHoldAllData, oldList.ToString(), this.ToString()), nameof(oldList)); 1789throw new InvalidOperationException(SR.FrugalList_CannotPromoteBeyondArray); 2169throw new InvalidOperationException(SR.FrugalList_CannotPromoteBeyondArray);
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\ReflectionHelper.cs (8)
347throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 360throw new ArgumentException(SR.Format(SR.ParserAttributeArgsLow, attrType.Name)); 365throw new ArgumentException(SR.Format(SR.ParserAttributeArgsHigh, attrType.Name)); 425throw new InvalidOperationException(SR.Format(SR.ParserAssemblyLoadVersionMismatch, request, found));
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\XmlCompatibilityReader.cs (32)
234Error(SR.XCRUnknownCompatElement, elementName); 275Error(SR.XCRInvalidACChild, Reader.Name); 325Error(SR.XCRChoiceNotFound); 837Error(SR.XCRCompatCycle, mappedNamespace); 967Error(SR.XCRInvalidFormat, callerContext); 977Error(SR.XCRUndefinedPrefix, prefix); 982Error(SR.XCRInvalidXMLName, pair); 1013Error(SR.XCRUndefinedPrefix, prefix); 1083Error(SR.XCRUnknownCompatAttrib, attributeName); 1167Error(SR.Format(SR.XCRInvalidACChild, Reader.Name)); 1173Error(SR.XCRChoiceNotFound); 1203Error(SR.XCRChoiceOnlyInAC); 1209Error(SR.XCRChoiceAfterFallback); 1217Error(SR.XCRRequiresAttribNotFound); 1223Error(SR.XCRInvalidRequiresAttribute); 1244Error(SR.XCRInvalidAttribInElement, attributeName, Choice); 1276Error(SR.XCRInvalidRequiresAttribute); 1319Error(SR.XCRFallbackOnlyInAC); 1325Error(SR.XCRChoiceNotFound); 1331Error(SR.XCRMultipleFallbackFound); 1349Error(SR.XCRInvalidAttribInElement, attributeName, Fallback); 1421Error(SR.XCRMustUnderstandFailed, namespaceUri); 1917_reader.Error(SR.XCRNSProcessContentNotIgnorable, key); 1929_reader.Error(SR.XCRNSPreserveNotIgnorable, key); 1941_reader.Error(SR.XCRNSPreserveNotIgnorable, key); 1972_reader.Error(SR.XCRDuplicateWildcardProcessContent, _namespaceName); 1976_reader.Error(SR.XCRDuplicateProcessContent, _namespaceName, elementName); 1984_reader.Error(SR.XCRInvalidProcessContent, _namespaceName); 2027_reader.Error(SR.XCRDuplicateWildcardPreserve, _namespaceName); 2031_reader.Error(SR.XCRDuplicatePreserve, itemName, _namespaceName); 2039_reader.Error(SR.XCRInvalidPreserve, _namespaceName);
System\Windows\Markup\ArrayExtension.cs (3)
84throw new InvalidOperationException(SR.MarkupExtensionArrayType); 96throw new InvalidOperationException(SR.Format(SR.MarkupExtensionArrayBadType, Type.Name));
System\Windows\Markup\NameReferenceConverter.cs (3)
31throw new InvalidOperationException(SR.MissingNameResolver); 37throw new InvalidOperationException(SR.MustHaveName); 72throw new InvalidOperationException(SR.MissingNameProvider);
System\Windows\Markup\Reference.cs (2)
30throw new InvalidOperationException(SR.MissingNameResolver); 35throw new InvalidOperationException(SR.MustHaveName);
System\Windows\Markup\StaticExtension.cs (11)
51throw new InvalidOperationException(SR.MarkupExtensionStaticMember); 68throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, _member)); 75throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, _member)); 84throw new ArgumentException(SR.Format(SR.MarkupExtensionNoContext, GetType().Name, nameof(IXamlTypeResolver))); 94throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, _member)); 110throw new ArgumentException(SR.Format(SR.MarkupExtensionBadStatic, typeNameForError is not null ? $"{typeNameForError}.{_member}" : _member));
System\Windows\Markup\StaticExtensionsToInstanceDescriptorsConverter.cs (2)
32throw new ArgumentException(SR.Format(SR.MustBeOfType, nameof(value), nameof(StaticExtension)));
System\Windows\Markup\TypeExtension.cs (5)
63throw new InvalidOperationException(SR.MarkupExtensionTypeName); 71throw new InvalidOperationException(SR.Format(SR.MarkupExtensionNoContext, GetType().Name, nameof(IXamlTypeResolver))); 78throw new InvalidOperationException(SR.Format(SR.MarkupExtensionTypeNameBad, _typeName));
System\Windows\Markup\TypeExtensionConverter.cs (2)
32throw new ArgumentException(SR.Format(SR.MustBeOfType, nameof(value), nameof(TypeExtension)));
System\Windows\Markup\ValueSerializer.cs (6)
240text = SR.ToStringNull; 247return new NotSupportedException(SR.Format(SR.ConvertToException, base.GetType().Name, text, destinationType.FullName)); 258text = SR.ToStringNull; 265return new NotSupportedException(SR.Format(SR.ConvertFromException, base.GetType().Name, text));
System\Xaml\AttachablePropertyServices.cs (1)
198throw new InvalidOperationException(SR.DefaultAttachablePropertyStoreCannotAddInstance);
System\Xaml\Context\NameFixupGraph.cs (5)
493exceptionMessage.Append(SR.ProvideValueCycle); 502exceptionMessage.Append(SR.Format(SR.LineNumberAndPosition, meName, token.LineNumber, token.LinePosition)); 506exceptionMessage.Append(SR.Format(SR.LineNumberOnly, meName, token.LineNumber));
System\Xaml\Context\ObjectWriterContext.cs (7)
161throw new XamlParseException(SR.Format(SR.TypeNotFound, xamlType.GetQualifiedName())); 317throw new ArgumentException(SR.Format(SR.NotAmbientProperty, xamlMember.DeclaringType.Name, xamlMember.Name), nameof(properties)); 432throw new ArgumentException(SR.Format(SR.NotAmbientType, xamlType.Name), nameof(types)); 883throw new InvalidOperationException(SR.NameScopeOnRootInstance);
System\Xaml\Context\ServiceProviderContext.cs (12)
123set { throw new InvalidOperationException(SR.MustNotCallSetter); } 139throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "properties")); 155throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "types")); 173throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "properties")); 189throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "types")); 209throw new ArgumentException(SR.Format(SR.ValueInArrayIsNull, "properties")); 297throw new ArgumentException(SR.SimpleFixupsMustHaveOneName, nameof(names));
System\Xaml\Context\XamlContext.cs (6)
79throw new XamlInternalException(SR.Format(SR.ParentlessPropertyElement, propName.ScopedName)); 87throw new XamlParseException(SR.Format(SR.PrefixNotFound, propName.Prefix)); 247throw new XamlParseException(SR.Format(SR.PrefixNotFound, typeName.Prefix));
System\Xaml\InfosetObjects\DeferredWriter.cs (28)
81throw new XamlInternalException(SR.Format(SR.TemplateNotCollected, methodName)); 103throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), methodName)); 116throw new XamlInternalException(SR.Format(SR.TemplateNotCollected, "WriteEndObject")); 133throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), "WriteEndObject")); 154throw new XamlInternalException(SR.Format(SR.TemplateNotCollected, "WriteMember")); 162throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), "WriteMember")); 175throw new XamlInternalException(SR.Format(SR.TemplateNotCollected, "WriteEndMember")); 183throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), "WriteEndMember")); 196throw new XamlInternalException(SR.Format(SR.TemplateNotCollected, "WriteValue")); 222throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), "WriteValue")); 234throw new XamlInternalException(SR.Format(SR.TemplateNotCollected, "WriteNamespace")); 247throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), "WriteNamespace")); 288throw new XamlInternalException(SR.Format(SR.TemplateNotCollected, nameof(SetLineInfo))); 300throw new XamlInternalException(SR.Format(SR.MissingCase, _mode.ToString(), nameof(SetLineInfo)));
System\Xaml\InfosetObjects\XamlObjectWriter.cs (91)
62throw new ArgumentException(SR.SavedContextSchemaContextNull, nameof(savedContext)); 76throw new ArgumentException(SR.SavedContextSchemaContextMismatch, nameof(schemaContext)); 264string err = SR.ValueMustBeFollowedByEndMember; 278? SR.Format(SR.NoPropertyInCurrentFrame_GO, xamlType.ToString()) 279: SR.NoPropertyInCurrentFrame_GO_noType; 304_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name))); 334string 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, 413string err = SR.ValueMustBeFollowedByEndMember; 419string err = SR.NoTypeInCurrentFrame_EO; 425string err = SR.Format(SR.OpenPropertyInCurrentFrame_EO, _context.CurrentType.ToString(), 588err = SR.ValueMustBeFollowedByEndMember; 592err = SR.Format(SR.TypeHasNoContentProperty, _context.CurrentType); 596err = SR.Format(SR.CantSetUnknownProperty, property.ToString()); 600err = SR.Format(SR.OpenPropertyInCurrentFrame_SM, _context.CurrentType.ToString(), 606err = SR.Format(SR.NoTypeInCurrentFrame_SM, property.ToString()); 645throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.LateConstructionDirective, property.Name))); 654throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.SettingPropertiesIsNotAllowed, property.Name))); 663throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.AttachedPropOnFwdRefTC, 715? SR.Format(SR.NoPropertyInCurrentFrame_EM, _context.CurrentType.ToString()) 716: SR.NoPropertyInCurrentFrame_EM_noType; 846? SR.Format(SR.NoPropertyInCurrentFrame_V, value, _context.CurrentType.ToString()) 847: SR.Format(SR.NoPropertyInCurrentFrame_V_noType, value); 898throw new ArgumentException(SR.NamespaceDeclarationPrefixCannotBeNull); 903throw new ArgumentException(SR.NamespaceDeclarationNamespaceCannotBeNull); 918string err = SR.ValueMustBeFollowedByEndMember; 924string err = SR.Format(SR.NoPropertyInCurrentFrame_NS, namespaceDeclaration.Prefix, 1075throw lineInfo.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.MissingKey, instanceType.Name))); 1087throw new InvalidOperationException(SR.Format(SR.ObjectWriterTypeNotAllowed, 1144throw ctx.WithLineInfo(new XamlInternalException(SR.ConstructImplicitType)); 1175string errMsg = string.Format(TypeConverterHelper.InvariantEnglishUS, SR.InvalidExpression, factoryMethodName); 1190throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.CannotResolveTypeForFactoryMethod, ownerTypeName, propertyName.Name))); 1201throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.NotAssignableFrom, currentType.GetQualifiedName(), instType.GetQualifiedName()))); 1235throw ctx.WithLineInfo(new XamlInternalException(SR.NonMEWithPositionalParameters)); 1245string msg = string.Format(TypeConverterHelper.InvariantEnglishUS, SR.NoSuchConstructor, rawArgs.Count, meType.Name); 1254throw ctx.WithLineInfo(new XamlInternalException(SR.PositionalParamsWrongLength)); 1277string err = SR.Format(SR.CantCreateUnknownType, xamlType.GetQualifiedName()); 1283throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.InitializationSyntaxWithoutTypeConverter, xamlType.GetQualifiedName()))); 1327string err = SR.Format(SR.TypeConverterFailed, targetName, value); 1669throw new XamlObjectWriterException(SR.CannotSetBaseUri); 1900Debug.WriteLine(SR.Format(SR.DictionaryFirstChanceException, ctx.ParentType, key, ctx.ParentType.KeyType)); 2015string msg = SR.Format(SR.ForwardRefDirectives, names); 2054string msg = SR.Format(SR.ForwardRefDirectives, names); 2108string msg = SR.Format(SR.ForwardRefDirectives, names); 2126throw new XamlInternalException(SR.BadStateObjectWriter); 2200throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.NameScopeException, ex.Message), ex)); 2228throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveNotAtRoot, XamlLanguage.Class))); 2233throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveMustBeString, XamlLanguage.Class))); 2248throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.XClassMustMatchRootInstance, className, rootInstanceType.FullName))); 2267throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.TransitiveForwardRefDirectives, 2376exceptionMessage.Append(SR.Format(SR.UnresolvedForwardReferences, token.NeededNames[0])); 2381exceptionMessage.Append(SR.Format(SR.LineNumberAndPosition, string.Empty, token.LineNumber, token.LinePosition)); 2384exceptionMessage.Append(SR.Format(SR.LineNumberOnly, string.Empty, token.LineNumber));
System\Xaml\MS\Impl\XmlNsInfo.cs (16)
198throw new XamlSchemaException(SR.Format(SR.BadXmlnsDefinition, assembly.FullName)); 283throw new XamlSchemaException(SR.Format(SR.BadInternalsVisibleTo1, assembly.FullName)); 292throw new XamlSchemaException(SR.Format(SR.BadInternalsVisibleTo2, assemblyName, assembly.FullName), ex); 298throw new XamlSchemaException(SR.Format(SR.BadInternalsVisibleTo2, assemblyName, assembly.FullName), ex); 344throw new XamlSchemaException(SR.Format(SR.BadXmlnsCompat, assembly.FullName)); 349throw new XamlSchemaException(SR.Format(SR.DuplicateXmlnsCompat, assembly.FullName, oldns)); 396throw new XamlSchemaException(SR.Format(SR.BadXmlnsPrefix, assembly.FullName)); 473throw new XamlSchemaException(SR.Format(SR.XmlnsCompatCycle, assembly.FullName, ns));
System\Xaml\NameScope.cs (14)
33throw new ArgumentException(SR.NameScopeNameNotEmptyString); 38throw new ArgumentException(SR.Format(SR.NameScopeInvalidIdentifierName, name)); 56throw new ArgumentException(SR.Format(SR.NameScopeDuplicateNamesNotAllowed, name)); 71throw new ArgumentException(SR.NameScopeNameNotEmptyString); 76throw new ArgumentException(SR.Format(SR.NameScopeNameNotFound, name)); 145throw 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)
43throw new ArgumentException(SR.NameScopeNameNotEmptyString); 47throw new ArgumentException(SR.Format(SR.NameScopeInvalidIdentifierName, name)); 72throw new ArgumentException(SR.Format(SR.NameScopeDuplicateNamesNotAllowed, name)); 83throw new ArgumentException(SR.NameScopeNameNotEmptyString); 98throw new ArgumentException(SR.Format(SR.NameScopeNameNotFound, name)); 108throw new ArgumentException(SR.NameScopeNameNotEmptyString);
System\Xaml\Parser\GenericTypeNameParser.cs (14)
51error = SR.Format(SR.InvalidTypeString, text); 58error = SR.Format(SR.PrefixNotFound, prefix); 252throw new TypeNameParserException(SR.Format(SR.InvalidCharInTypeName, _scanner.ErrorCurrentChar, _inputText)); 270frame.Namespace = ns ?? throw new TypeNameParserException(SR.Format(SR.PrefixNotFound, prefix)); 298throw new TypeNameParserException(SR.Format(SR.InvalidTypeString, _inputText)); 304throw new TypeNameParserException(SR.Format(SR.InvalidTypeString, _inputText)); 315throw new TypeNameParserException(SR.Format(SR.InvalidTypeString, _inputText));
System\Xaml\Parser\MePullParser.cs (8)
56throw new XamlParseException(_tokenizer, SR.UnexpectedTokenAfterME); 61throw new XamlParseException(_tokenizer, SR.WhitespaceAfterME); 69_brokenRule = SR.Format(SR.UnexpectedToken, 431error = SR.Format(SR.MissingComma1, _tokenizer.TokenText); 435error = SR.Format(SR.MissingComma2, _context.CurrentMember.Name, _tokenizer.TokenText);
System\Xaml\Parser\MeScanner.cs (8)
319throw new ArgumentException(SR.MalformedPropertyName); 400throw new XamlParseException(this, SR.Format(SR.InvalidClosingBracketCharacers, ch.ToString())); 466throw new XamlParseException(this, SR.QuoteCharactersOutOfPlace); 491throw new XamlParseException(this, SR.UnexpectedTokenAfterME); 497throw new XamlParseException(this, SR.Format(SR.MalformedBracketCharacters, ch.ToString())); 512throw new XamlParseException(this, SR.UnclosedQuote);
System\Xaml\Parser\XamlPullParser.cs (2)
1259: base(xamlScanner, SR.Format(SR.UnexpectedNodeType, nodetype.ToString(), parseRule)) { }
System\Xaml\Parser\XamlScanner.cs (5)
250throw LineInfo(new XamlParseException(SR.Format(SR.ParentlessPropertyElement, _xmlReader.Name))); 569throw new XamlParseException(SR.Format(SR.InvalidXamlMemberName, xmlName)); 798throw new XamlInternalException(SR.AttributeUnhandledKind);
System\Xaml\Runtime\ClrObjectRuntime.cs (63)
48throw CreateException(SR.Format(SR.CannotCreateBadType, xamlType.Name)); 57throw CreateException(SR.Format(SR.NoConstructor, xamlType.UnderlyingType), ex); 66throw CreateException(SR.Format(SR.ConstructorInvocation, xamlType.UnderlyingType), UnwrapTargetInvocationException(ex)); 80throw CreateException((SR.Format(SR.CannotResolveTypeForFactoryMethod, xamlType, methodName))); 96throw CreateException(SR.Format(SR.MethodInvocation, qMethodName), UnwrapTargetInvocationException(e)); 102throw CreateException(SR.Format(SR.FactoryReturnedNull, qMethodName)); 173throw CreateException(SR.Format(SR.TypeConverterFailed2, instance, typeof(string)), ex); 190throw CreateException(SR.Format(SR.CanConvertFromFailed, typeof(T), converter.GetType()), ex); 207throw CreateException(SR.Format(SR.CanConvertToFailed, type, converter.GetType()), ex); 224throw CreateException(SR.Format(SR.TypeConverterFailed2, instance, typeof(string)), ex); 241throw CreateException(SR.Format(SR.TypeConverterFailed2, instance, typeof(T)), ex); 277throw CreateException(SR.Format(SR.GetValue, property), UnwrapTargetInvocationException(e)); 306throw CreateException(SR.Format(SR.SetValue, property), UnwrapTargetInvocationException(e)); 328throw CreateException(SR.Format(SR.AddCollection, collectionType), UnwrapTargetInvocationException(e)); 345throw CreateException(SR.Format(SR.AddDictionary, dictionaryType), UnwrapTargetInvocationException(e)); 368throw CreateException(SR.Format(SR.GetItemsException, collectionType), ex); 414throw CreateException(SR.Format(SR.GetItemsException, dictionaryType), ex); 431throw CreateException(SR.Format(SR.APSException, instance)); 456throw CreateException(SR.Format(SR.APSException, instance)); 476throw CreateException(SR.SetConnectionId, e); 503throw CreateException(SR.Format(SR.InitializationGuard, xamlType), e); 521throw CreateException(SR.Format(SR.ProvideValue, me.GetType()), e); 541throw CreateException(SR.Format(SR.AddDictionary, xamlType), e); 552throw CreateException((SR.Format(SR.XmlDataNull, property.Name))); 557throw new XamlInternalException(SR.Format(SR.XmlValueNotReader, property.Name)); 571throw CreateException(SR.Format(SR.SetXmlInstance, property), e); 589throw new XamlObjectWriterException(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader)); 607throw CreateException(SR.DeferredLoad, e); 620throw new XamlObjectWriterException(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader)); 632throw CreateException(SR.DeferredSave, e); 649throw CreateException(SR.Format(SR.ShouldSerializeFailed, member)); 732throw CreateException(SR.Format(SR.GetItemsException, collectionType), UnwrapTargetInvocationException(ex)); 737throw CreateException(SR.Format(SR.GetItemsReturnedNull, collectionType));
System\Xaml\Runtime\DynamicMethodRuntime.cs (4)
243throw new NotSupportedException(SR.Format(SR.CantGetWriteonlyProperty, member)); 261throw new NotSupportedException(SR.Format(SR.CantSetReadonlyProperty, member));
System\Xaml\Schema\CollectionReflector.cs (4)
91throw new XamlSchemaException(SR.Format(SR.AmbiguousCollectionItemType, type)); 99throw new XamlSchemaException(SR.Format(SR.AmbiguousDictionaryItemType, type));
System\Xaml\Schema\Reflector.cs (2)
544throw new XamlSchemaException(SR.Format(SR.UnexpectedConstructorArg,
System\Xaml\Schema\TypeReflector.cs (2)
1096string message = SR.Format(SR.TooManyAttributesOnType,
System\Xaml\Schema\XamlDirective.cs (1)
44throw new ArgumentException(SR.CollectionCannotContainNulls, nameof(xamlNamespaces));
System\Xaml\Schema\XamlMemberInvoker.cs (7)
57throw new NotSupportedException(SR.Format(SR.CantGetWriteonlyProperty, _member)); 76throw new NotSupportedException(SR.Format(SR.CantSetReadonlyProperty, _member)); 159throw new NotSupportedException(SR.NotSupportedOnUnknownMember); 167throw new NotSupportedException(SR.NotSupportedOnDirective); 172throw new NotSupportedException(SR.NotSupportedOnDirective);
System\Xaml\Schema\XamlTypeInvoker.cs (10)
69throw new NotSupportedException(SR.OnlySupportedOnCollections); 85throw new XamlSchemaException(SR.Format(SR.NoAddMethodFound, _xamlType, itemType)); 103throw new NotSupportedException(SR.OnlySupportedOnDictionaries); 119throw new XamlSchemaException(SR.Format(SR.NoAddMethodFound, _xamlType, itemType)); 221throw new NotSupportedException(SR.OnlySupportedOnCollectionsAndDictionaries); 251throw new NotSupportedException(SR.NotSupportedOnUnknownType); 314throw new MissingMethodException(SR.Format(SR.NoDefaultConstructor, underlyingType.FullName));
System\Xaml\Schema\XamlValueConverter.cs (4)
33throw new ArgumentException(SR.Format(SR.ArgumentRequired, $"{nameof(converterType)}, {nameof(targetType)}, {nameof(name)}")); 81throw new XamlSchemaException(SR.Format(SR.ConverterMustDeriveFromBase,
System\Xaml\WriterDelegate.cs (2)
76_addDelegate = delegate { throw new XamlException(SR.WriterIsClosed); }; 79_addLineInfoDelegate = delegate { throw new XamlException(SR.WriterIsClosed); };
System\Xaml\XamlBackgroundReader.cs (1)
87throw new InvalidOperationException(SR.ThreadAlreadyStarted);
System\Xaml\XamlException.cs (6)
45return SR.Format(SR.LineNumberAndPosition, base.Message, LineNumber, LinePosition); 48return SR.Format(SR.LineNumberOnly, base.Message, LineNumber); 146: base(SR.Format(SR.DuplicateMemberSet, member?.Name, type?.Name))
System\Xaml\XamlMarkupExtensionWriter.cs (11)
136throw new InvalidOperationException(SR.Format(SR.XamlMarkupExtensionWriterDuplicateMember, property.Name)); 177throw 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); 607throw new InvalidOperationException(SR.XamlMarkupExtensionWriterInputInvalid); 614throw new InvalidOperationException(SR.XamlMarkupExtensionWriterInputInvalid);
System\Xaml\XamlMember.cs (3)
107throw new ArgumentNullException(SR.GetterOrSetterRequired, (Exception)null); 849throw new ArgumentException(SR.IncorrectGetterParamNum, argumentName); 857throw new ArgumentException(SR.IncorrectSetterParamNum, argumentName);
System\Xaml\XamlNodeList.cs (5)
56throw new XamlException(SR.CloseXamlWriterBeforeReading); 61throw new XamlException(SR.SchemaContextNotInitialized); 83throw new XamlException(SR.CannotWriteClosedWriter); 91throw new XamlException(SR.CannotWriteClosedWriter); 106throw new XamlException(SR.CloseXamlWriterBeforeReading);
System\Xaml\XamlObjectReader.cs (39)
311throw new InvalidOperationException(SR.ExpectedObjectMarkupInfo); 344throw new XamlObjectReaderException(SR.Format(SR.DeferringLoaderInstanceNull, deferringLoader)); 908throw new InvalidOperationException(SR.Format(SR.AttachedPropertyOnTypeConvertedOrStringProperty, property.Name, value.ToString(), props[0].Key.ToString())); 912throw new InvalidOperationException(SR.Format(SR.AttachedPropertyOnDictionaryKey, value.ToString(), props[0].Key.ToString())); 1260throw new XamlObjectReaderException(SR.ObjectReaderInstanceDescriptorIncompatibleArguments); 1267throw new XamlObjectReaderException(SR.ObjectReaderInstanceDescriptorInvalidMethod); 1274throw new XamlObjectReaderException(SR.ObjectReaderInstanceDescriptorIncompatibleArguments); 1288throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderInstanceDescriptorIncompatibleArgumentTypes, "null", parameterInfo.ParameterType)); 1294throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderInstanceDescriptorIncompatibleArgumentTypes, argument.GetType(), parameterInfo.ParameterType)); 1701throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderNoDefaultConstructor, value.GetType())); 1704throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderNoMatchingConstructor, value.GetType())); 1726throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderTypeIsNested, xamlType.Name)); 1730throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderTypeCannotRoundtrip, xamlType.Name)); 1781throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderXamlNamedElementAlreadyRegistered, Name)); 1806throw new XamlObjectReaderException(SR.ObjectReaderMultidimensionalArrayNotSupported); 1885throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderAttachedPropertyNotFound, owningType, ap.Key.MemberName)); 2143throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderXamlNamePropertyMustBeString, property.Name, property.DeclaringType)); 2642throw new XamlObjectReaderException(SR.Format(SR.ObjectReaderTypeNotAllowed, 2654throw new XamlObjectReaderException(SR.Format(SR.ObjectReader_TypeNotVisible, clrType.FullName)); 2899throw new XamlObjectReaderException(SR.Format(SR.XamlFactoryInvalidXamlNode, reader.NodeType)); 2910throw new XamlObjectReaderException(SR.Format(SR.XamlFactoryInvalidXamlNode, reader.NodeType)); 2949throw new InvalidOperationException(SR.Format(SR.XamlFactoryInvalidXamlNode, reader.NodeType));
System\Xaml\XamlSchemaContext.cs (10)
279throw new ArgumentException(SR.Format(SR.ReferenceIsNull, "xamlTypeName.Name"), nameof(xamlTypeName)); 284throw new ArgumentException(SR.Format(SR.ReferenceIsNull, "xamlTypeName.Namespace"), nameof(xamlTypeName)); 295throw new ArgumentException(SR.Format(SR.CollectionCannotContainNulls, "xamlTypeName.TypeArguments")); 319throw new ArgumentException(SR.Format(SR.CollectionCannotContainNulls, "typeArguments")); 468throw new XamlSchemaException(SR.Format(SR.DuplicateXmlnsCompatAcrossAssemblies,
System\Xaml\XamlServices.cs (1)
146throw new ArgumentException(SR.StringIsNullOrEmpty, nameof(fileName));
System\Xaml\XamlType.cs (6)
1587throw new ArgumentException(SR.Format(SR.CollectionCannotContainNulls, "typeArguments")); 1711throw new XamlSchemaException(SR.Format(SR.MarkupExtensionWithDuplicateArity, UnderlyingType, typeVector.Length)); 1763string err = SR.Format(SR.UsableDuringInitializationOnME, this);
System\Xaml\XamlTypeName.cs (4)
206throw new InvalidOperationException(SR.XamlTypeNameNamespaceIsNull); 211throw new InvalidOperationException(SR.XamlTypeNameNameIsNullOrEmpty); 225throw new InvalidOperationException(SR.Format(SR.XamlTypeNameCannotGetPrefix, Namespace));
System\Xaml\XamlWriter.cs (1)
59throw new NotImplementedException(SR.MissingCaseXamlNodes);
System\Xaml\XamlXmlWriter.cs (60)
166throw new ArgumentException(SR.Format(SR.TypeHasInvalidXamlName, type.Name), nameof(type)); 191throw new ArgumentException(SR.Format(SR.MemberHasInvalidXamlName, property.Name), nameof(property)); 215throw new ArgumentException(SR.XamlXmlWriterCannotWriteNonstringValue, nameof(value)); 230throw new ArgumentException(SR.NamespaceDeclarationPrefixCannotBeNull, nameof(namespaceDeclaration)); 235throw new ArgumentException(SR.NamespaceDeclarationNamespaceCannotBeNull, nameof(namespaceDeclaration)); 240throw new ArgumentException(SR.NamespaceDeclarationCannotBeXml, nameof(namespaceDeclaration)); 398throw new InvalidOperationException(SR.Format(SR.PrefixNotInFrames, prefix)); 515throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterDuplicateMember, property.Name)); 744throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterPrefixAlreadyDefinedInCurrentScope, prefix)); 749throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterNamespaceAlreadyHasPrefixInCurrentScope, ns)); 783throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteObject")); 788throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteEndObject")); 793throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteStartMember")); 798throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteEndMember")); 803throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteValue")); 808throw new XamlXmlWriterException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteNamespace")); 936throw new NotSupportedException(SR.MissingCaseXamlNodes); 966throw new XamlXmlWriterException(SR.XamlXmlWriterWriteObjectNotSupportedInCurrentState); 1041throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteStartMember")); 1048throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteStartMember")); 1073throw new XamlXmlWriterException(SR.ExpandPositionalParametersinTypeWithNoDefaultConstructor); 1092throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteEndObject")); 1181throw new XamlXmlWriterException(SR.ExpandPositionalParametersinTypeWithNoDefaultConstructor); 1251throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteValue")); 1288throw new InvalidOperationException(SR.Format(SR.WhiteSpaceInCollection, value, containingXamlType.Name)); 1330throw new XamlXmlWriterException(SR.Format(SR.CannotWriteXmlSpacePreserveOnMember, frameWithXmlSpacePreserve.Member, value)); 1387throw new InvalidOperationException(SR.XamlXmlWriterWriteObjectNotSupportedInCurrentState); 1399throw new InvalidOperationException(SR.XamlXmlWriterIsObjectFromMemberSetForArraysOrNonCollections); 1492throw new InvalidOperationException(SR.Format(SR.WhiteSpaceInCollection, writer.deferredValue, containingXamlType.Name)); 1911throw new XamlXmlWriterException(SR.Format( 1912SR.ExpandPositionalParametersWithoutUnderlyingType, objectXamlType.GetQualifiedName())); 1923throw new XamlXmlWriterException(SR.ConstructorNotFoundForGivenPositionalParameters); 1943throw new XamlXmlWriterException(SR.ConstructorNotFoundForGivenPositionalParameters); 1951throw new XamlXmlWriterException(SR.ExpandPositionalParametersWithReadOnlyProperties); 1965throw new XamlXmlWriterException(SR.ConstructorNotFoundForGivenPositionalParameters); 1980throw new XamlXmlWriterException(SR.ConstructorNotFoundForGivenPositionalParameters); 1988throw new XamlXmlWriterException(SR.ConstructorNotFoundForGivenPositionalParameters); 2040throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, operation)); 2065throw new InvalidOperationException(SR.Format(SR.XamlXmlWriterWriteNotSupportedInCurrentState, "WriteGetObject"));