39 references to WithLineInfo
System.Xaml (39)
System\Xaml\InfosetObjects\XamlObjectWriter.cs (39)
109throw _context.WithLineInfo(new XamlInternalException()); 265throw _context.WithLineInfo(new XamlObjectWriterException(err)); 281throw _context.WithLineInfo(new XamlObjectWriterException(err)); 304_context.CurrentInstance = inst ?? throw _context.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.GetObjectNull, parentInstance.GetType(), parentProperty.Name))); 335throw _context.WithLineInfo(new XamlObjectWriterException(err)); 341throw _context.WithLineInfo(new XamlObjectWriterException(err)); 348throw _context.WithLineInfo(new XamlObjectWriterException(err)); 414throw _context.WithLineInfo(new XamlObjectWriterException(err)); 420throw _context.WithLineInfo(new XamlObjectWriterException(err)); 427throw _context.WithLineInfo(new XamlObjectWriterException(err)); 520throw _context.WithLineInfo(new XamlDuplicateMemberException( 611throw _context.WithLineInfo(new XamlObjectWriterException(err)); 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, 718throw _context.WithLineInfo(new XamlObjectWriterException(err)); 849throw _context.WithLineInfo(new XamlObjectWriterException(err)); 919throw _context.WithLineInfo(new XamlObjectWriterException(err)); 927throw _context.WithLineInfo(new XamlObjectWriterException(err)); 1062return _context.WithLineInfo(ex); 1144throw ctx.WithLineInfo(new XamlInternalException(SR.ConstructImplicitType)); 1176throw ctx.WithLineInfo(new XamlInternalException(errMsg)); 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)); 1246throw ctx.WithLineInfo(new XamlObjectWriterException(msg)); 1254throw ctx.WithLineInfo(new XamlInternalException(SR.PositionalParamsWrongLength)); 1278throw ctx.WithLineInfo(new XamlObjectWriterException(err)); 1283throw ctx.WithLineInfo(new XamlObjectWriterException(SR.Format(SR.InitializationSyntaxWithoutTypeConverter, xamlType.GetQualifiedName()))); 1527throw ctx.WithLineInfo(new XamlDuplicateMemberException(property, xamlType)); 2016throw ctx.WithLineInfo(new XamlObjectWriterException(msg)); 2040throw ctx.WithLineInfo(new XamlDuplicateMemberException( 2055throw ctx.WithLineInfo(new XamlObjectWriterException(msg)); 2109throw ctx.WithLineInfo(new XamlObjectWriterException(msg)); 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,