public static DefaultConstraintConfiguration Deserialize(string serialized) { string first, second; SimpleSerializer.Deserialize(serialized, out first, out second); return(new DefaultConstraintConfiguration { Name = first, Value = second }); }
public static EncryptedWithConfiguration Deserialize(string serialized) { string first; int second; SimpleSerializer.Deserialize(serialized, out first, out second); return(new EncryptedWithConfiguration { KeyName = first, Type = (EncryptionType)second }); }
public string Serialize() { return(SimpleSerializer.Serialize(KeyName, (int)Type)); }
public string Serialize() { return(SimpleSerializer.Serialize(Name, Value)); }