Exemplo n.º 1
0
        private byte[] Encrypt <T>(T value)
        {
            var converter = TypeDescriptor.GetConverter(typeof(T));
            var text      = converter.ConvertToInvariantString(value);

            return(_cryptographyService.EncryptPlainText(text));
        }