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