public SyncFromDictMethod(ITypeSymbol type) { _type = type; _arguments = Arguments(type.ToString()).ToImmutableArray(); _properties = new Lazy <ImmutableArray <IPropertySymbol> >(() => _type.GetAccessibleProperties().ToImmutableArray()); }
public SyncMethod(ITypeSymbol srcType, ITypeSymbol targetType) { _srcType = srcType; _targetType = targetType; _arguments = Arguments(srcType.ToString(), targetType.ToString()).ToImmutableArray(); _srcProperties = new Lazy <ImmutableArray <IPropertySymbol> >(() => _srcType.GetAccessibleProperties().ToImmutableArray()); _targetProperties = new Lazy <ImmutableArray <IPropertySymbol> >(() => _targetType.GetAccessibleProperties().ToImmutableArray()); }