Take a look at this code:
interface IInterface { Task DoSomethingAsync(); } public class UsageClass { IInterface obj; public void Use() {