public static bool IsReadWrite(this BasePropertyDeclarationSyntax @this)
 {
     if (@this == null)
     {
         throw new ArgumentNullException(nameof(@this));
     }
     return(@this.Getter() != null && @this.Setter() != null);
 }
        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);
        }