dotnetomaniak.pl

Imagine that you have a service, which receives requests to execute specific methods, possibly from a number of different underlying libraries that you don’t want to expose directly. Possible examples are web services. The request comes in as a number of string values (method name, parameters etc.) and you need to respond with results. So you have inherited a project with API that starts with a method: object Invoke(string methodName, object[] parameters); You now have to call variety o...

Źródło: szumiato.pl
Dziel się z innymi:
Invoking methods dynamically in C#: Examples and benchmarks – Kuba on .NET

Inne 1014 dni, 1 godzinę, 2 minuty temu Jakub Szumiato 162 pokaż kod licznika zwiń

Wczytywanie artykułów...
Dodaj nowe Zobacz wszystkie

Najaktywniejsi

1

Paweł Łukasik (32 876,58)

2

macko (32 816,53)

3

pzielinski (27 178,29)

4

gordon_shumway (21 178,88)

5

paduda (20 336,33)

6

psz750 (13 018,14)

7

rroszczyk (10 434,69)

8

Damian (9 760,28)

9

danielplawgo (8 223,27)

10

arek (6 822,96)

11

burczu (6 214,22)

12

PaSkol (5 393,84)

13

lukaszgasior (4 097,38)

14

dpawlukiewicz (3 997,56)

15

jj09 (3 863,06)

16

AdrianBystrek (3 595,16)

17

spetz (3 448,35)

18

jedmac (3 318,39)

19

http://jakub-flor... (3 224,66)

20

KonradKokosa (3 090,4)