From 6c4ad4e57da2ea855529334109c24e3f6e306c14 Mon Sep 17 00:00:00 2001 From: Alex Jones Date: Fri, 29 Sep 2023 12:47:53 +0100 Subject: [PATCH] Refer to TypedParameter extension method This is a more elegant method of specifying typed parameters --- docs/register/parameters.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/register/parameters.rst b/docs/register/parameters.rst index 1b584a9..d84f749 100644 --- a/docs/register/parameters.rst +++ b/docs/register/parameters.rst @@ -56,7 +56,7 @@ Or you could pass a parameter to a reflection component registration: // Using a TYPED parameter: builder.RegisterType() .As() - .WithParameter(new TypedParameter(typeof(string), "sectionName")); + .WithParameter(TypedParameter.From("sectionName")); // Using a RESOLVED parameter: builder.RegisterType()