public static IEnumerable <IPropertySymbol> GetFieldsThaCanBeSetPrivately(ITypeSymbol type) { return(ObjectHelper.GetPublicPropertySymbols(type) .Where(property => property.SetMethod != null && property.CanBeSetPrivately())); }
public static IEnumerable <IPropertySymbol> GetFieldsThaCanBeSetFromConstructor(ITypeSymbol type) { return(ObjectHelper.GetPublicPropertySymbols(type) .Where(property => property.SetMethod != null || property.CanBeSetOnlyFromConstructor())); }