Skip to content

ConverterMigrationHelper.ImportFrom(ConverterService, IReadonlyDependencyResolver) method

Defined in

Type: ConverterMigrationHelper Namespace: ReactiveUI.Binding Assembly: ReactiveUI.Binding.dll

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481, net471

public static void ImportFrom(this ConverterService converterService, IReadonlyDependencyResolver resolver)

View source

Summary: Imports converters from a Splat resolver directly into a ConverterService.

Parameters

NameTypeDescription
converterService[ConverterService](#The converter service to import into. Must not be null.
resolver[IReadonlyDependencyResolver](#The Splat resolver to import converters from. Must not be null.

Remarks

This extension method extracts all converters from the Splat resolver and registers them with the specified ConverterService.

Important: This method imports converters at the time it's called. Any converters registered with Splat after this call will not be included.

Exceptions

TypeCondition
System.ArgumentNullExceptionThrown if converterService or resolver is null.