What is this lambda expression with Unity Resolver doing

ساخت وبلاگ

Vote count: 1

Looking through someone else's code I found this line of code:

 protected IDirectIp Iridium => _resolver.Resolve<IDirectIp>();

I was confused seeing a lambda (=>) instead of an equal sign (=). The dependency injection library is Unity, is this syntax specific to Unity?

Could anyone explain what this expression is doing?

asked 1 min ago

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 250 تاريخ : چهارشنبه 5 خرداد 1395 ساعت: 1:01