diff --git a/Design/Rule0044AnalyzeTransferField.cs b/Design/Rule0044AnalyzeTransferField.cs index cf9f0062..ebfcbe19 100644 --- a/Design/Rule0044AnalyzeTransferField.cs +++ b/Design/Rule0044AnalyzeTransferField.cs @@ -58,6 +58,9 @@ private async void AnalyzeTransferFields(OperationAnalysisContext ctx) if (ctx.Operation.Syntax.GetType() != typeof(InvocationExpressionSyntax)) return; + if (((IInvocationExpression)ctx.Operation).TargetMethod.MethodKind != MethodKind.BuiltInMethod) + return; + InvocationExpressionSyntax invocationExpression = (InvocationExpressionSyntax)ctx.Operation.Syntax; Tuple? records = GetInvokingRecordNames(invocationExpression);