From 4af0855dca11ae24432600100928d044e321fe78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Kaya?= Date: Sun, 10 Sep 2017 11:45:00 +0200 Subject: [PATCH] Updated factory method documentation --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dc3a339..28fe1bb 100644 --- a/README.md +++ b/README.md @@ -61,10 +61,10 @@ public class Audi : ICar, IFuelConsumer { ## Factory method attributes -If you want to add `Audi` as an implementation of `ICar` using factory method, you can do following +If you want to add `Audi` as an implementation of `ICar` using static factory method, you can do following ```c# [RegisterTransientFactory(typeof(ICar))] -public Audi CreateAudi(IServiceProvider provider) { +public static Audi CreateAudi(IServiceProvider provider) { return new Audi(); } ```