System\Xaml\InfosetObjects\XamlObjectWriter.cs (39)
112throw _context.WithLineInfo(new XamlInternalException());
262throw _context.WithLineInfo(new XamlObjectWriterException(err));
277throw _context.WithLineInfo(new XamlObjectWriterException(err));
300_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name)));
331throw _context.WithLineInfo(new XamlObjectWriterException(err));
336throw _context.WithLineInfo(new XamlObjectWriterException(err));
343throw _context.WithLineInfo(new XamlObjectWriterException(err));
407throw _context.WithLineInfo(new XamlObjectWriterException(err));
412throw _context.WithLineInfo(new XamlObjectWriterException(err));
418throw _context.WithLineInfo(new XamlObjectWriterException(err));
509throw _context.WithLineInfo(new XamlDuplicateMemberException(
599throw _context.WithLineInfo(new XamlObjectWriterException(err));
633throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.LateConstructionDirective, property.Name)));
642throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.SettingPropertiesIsNotAllowed, property.Name)));
650throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.AttachedPropOnFwdRefTC,
703throw _context.WithLineInfo(new XamlObjectWriterException(err));
830throw _context.WithLineInfo(new XamlObjectWriterException(err));
899throw _context.WithLineInfo(new XamlObjectWriterException(err));
906throw _context.WithLineInfo(new XamlObjectWriterException(err));
1037return _context.WithLineInfo(ex);
1115throw ctx.WithLineInfo(new XamlInternalException(SR.ConstructImplicitType));
1148throw ctx.WithLineInfo(new XamlInternalException(errMsg));
1162throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.CannotResolveTypeForFactoryMethod, ownerTypeName, propertyName.Name)));
1173throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.NotAssignableFrom, currentType.GetQualifiedName(), instType.GetQualifiedName())));
1206throw ctx.WithLineInfo(new XamlInternalException(SR.NonMEWithPositionalParameters));
1217throw ctx.WithLineInfo(new XamlObjectWriterException(msg));
1225throw ctx.WithLineInfo(new XamlInternalException(SR.PositionalParamsWrongLength));
1249throw ctx.WithLineInfo(new XamlObjectWriterException(err));
1253throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.InitializationSyntaxWithoutTypeConverter, xamlType.GetQualifiedName())));
1488throw ctx.WithLineInfo(new XamlDuplicateMemberException(property, xamlType));
1962throw ctx.WithLineInfo(new XamlObjectWriterException(msg));
1984throw ctx.WithLineInfo(new XamlDuplicateMemberException(
1999throw ctx.WithLineInfo(new XamlObjectWriterException(msg));
2052throw ctx.WithLineInfo(new XamlObjectWriterException(msg));
2142throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.NameScopeException, ex.Message), ex));
2170throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveNotAtRoot, XamlLanguage.Class)));
2175throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.DirectiveMustBeString, XamlLanguage.Class)));
2188throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.XClassMustMatchRootInstance, className, rootInstanceType.FullName)));
2207throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.TransitiveForwardRefDirectives,