File tree Expand file tree Collapse file tree
API/SOFTURE.Common.StronglyTypedIdentifiers/API/Extensions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using FastEndpoints ;
2+ using Microsoft . Extensions . Primitives ;
23using SOFTURE . Common . StronglyTypedIdentifiers . API . Parsers ;
34using SOFTURE . Language . Common ;
45
@@ -34,7 +35,7 @@ public static void RegisterIdentifierParsers<TLanguageAssemblyMarker>(this Confi
3435 private static void RegisterParser ( this Config config , Type identifierType , string parserMethodName )
3536 {
3637 var method = typeof ( IdentifierParsers ) . GetMethod ( parserMethodName ) ? . MakeGenericMethod ( identifierType ) ;
37- var delegateType = typeof ( Func < , > ) . MakeGenericType ( typeof ( object ) , typeof ( ParseResult ) ) ;
38+ var delegateType = typeof ( Func < , > ) . MakeGenericType ( typeof ( StringValues ) , typeof ( ParseResult ) ) ;
3839 var parserDelegate = Delegate . CreateDelegate ( delegateType , method ! ) ;
3940
4041 var bindingMethod = config . Binding . GetType ( ) . GetMethod ( ValueParserForMethodName , [ delegateType ] )
You can’t perform that action at this time.
0 commit comments