예제 #1
0
        public SyncFromDictMethod(ITypeSymbol type)
        {
            _type      = type;
            _arguments = Arguments(type.ToString()).ToImmutableArray();

            _properties = new Lazy <ImmutableArray <IPropertySymbol> >(() => _type.GetAccessibleProperties().ToImmutableArray());
        }
예제 #2
0
        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());
        }