コード例 #1
0
 public EncryptedDictionaryConverter(IDataProtector dataProtector, JsonSerializerOptions options,
                                     EncryptedArrayConverter <KeyValuePair <TKey, TValue> > arrayConverter)
 {
     _dataProtector  = dataProtector;
     _options        = options;
     _arrayConverter = arrayConverter;
 }
コード例 #2
0
        public EncryptedEnumerableConverter(IDataProtector dataProtector, JsonSerializerOptions options, EncryptedArrayConverter <T> arrayConverter)
        {
            _dataProtector  = dataProtector;
            _options        = options;
            _arrayConverter = arrayConverter;

            _elementType = typeof(T);
            _arrayType   = _elementType.MakeArrayType();
        }