public class TestService { private IService1 Service1; private IService2 Service2; public TestService(IService1 service1, IService2 service2) { Service1 = Guard.Against.Null(service1, nameof(service1)); Service2 = Guard.Against.Null(service2, nameof(service2)); } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter