Skip to content

Commit 66bbc9a

Browse files
committed
Fix S6608: use indexer instead of LINQ First().
1 parent 121780b commit 66bbc9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Autofac.Extras.DynamicProxy/RegistrationExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public static IRegistrationBuilder<TLimit, TActivatorData, TSingleRegistrationSt
178178
return;
179179
}
180180

181-
var theInterface = proxiedInterfaces.First();
181+
var theInterface = proxiedInterfaces[0];
182182
var interfaces = proxiedInterfaces.Skip(1).ToArray();
183183

184184
var interceptors = GetInterceptorServices(ctx.Registration, ctx.Instance.GetType())

0 commit comments

Comments
 (0)