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