public ObjectMembersMappingSourceFinder(ITypeSymbol sourceType, SyntaxNode sourceGlobalAccessor, SyntaxGenerator generator) { this.sourceType = sourceType; this.sourceGlobalAccessor = sourceGlobalAccessor; this.generator = generator; this.sourceProperties = new Lazy <IReadOnlyList <IPropertySymbol> >(() => ObjectHelper.GetPublicPropertySymbols(sourceType) .Where(property => property.GetMethod != null) .ToList()); this.sourceMethods = new Lazy <IReadOnlyList <IMethodSymbol> >(() => ObjectHelper.GetPublicGetMethods(sourceType).ToList()); }
public MappingSourceFinder(ITypeSymbol sourceType, SyntaxNode sourceGlobalAccessor, SyntaxGenerator generator, SemanticModel semanticModel) { this.sourceType = sourceType; this.sourceGlobalAccessor = sourceGlobalAccessor; this.generator = generator; this.semanticModel = semanticModel; this.sourceProperties = new Lazy <IReadOnlyList <IPropertySymbol> >(() => ObjectHelper.GetPublicPropertySymbols(sourceType).ToList()); this.sourceMethods = new Lazy <IReadOnlyList <IMethodSymbol> >(() => ObjectHelper.GetPublicGetMethods(sourceType).ToList()); }