Skip to content

Instantly share code, notes, and snippets.

View bredstrup's full-sized avatar

Anders Pedersen bredstrup

View GitHub Profile
@bredstrup
bredstrup / CryptoService
Last active August 29, 2015 14:06
Encryption / decryption using BouncyCastle
using System;
using System.IO;
using System.Text;
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Engines;
using Org.BouncyCastle.Crypto.Generators;
using Org.BouncyCastle.Crypto.Modes;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Security;
@bredstrup
bredstrup / DelegatePropertyConfiguration
Created September 11, 2014 10:18
Glass Delegate implementaion
public class DelegatePropertyConfiguration<T>: AbstractPropertyConfiguration where T : AbstractDataMappingContext
{
/// <summary>
/// The default Constructor.
/// </summary>
public DelegatePropertyConfiguration()
{
}
public Action<T> MapToCmsAction { get; set; }