diff --git a/Design/Rule0044AnalyzeTransferField.cs b/Design/Rule0044AnalyzeTransferField.cs index 7acd7496..ccfd8013 100644 --- a/Design/Rule0044AnalyzeTransferField.cs +++ b/Design/Rule0044AnalyzeTransferField.cs @@ -718,7 +718,7 @@ public void PopulateFields(IApplicationObjectTypeSymbol table) public void PopulateFields(FieldExtensionListSyntax fieldList) { - foreach (FieldSyntax field in fieldList.Fields) + foreach (FieldSyntax field in fieldList.Fields.Where(fld => fld.IsKind(SyntaxKind.Field))) { if (!FieldIsObsolete(field)) Fields.Add(new Field((int)field.No.Value, field.Name.Identifier.ToString().Replace("\"", ""), field.Type.ToString(), field.GetLocation(), this));