public static bool IsAutoImplentedProperty(this BasePropertyDeclarationSyntax @this) { if (@this == null) { throw new ArgumentNullException(nameof(@this)); } if (@this.IsAbstract()) { return(false); } var getter = @this.Getter(); return(getter != null && //Auto-properties must have getter getter.Body == null); }