예제 #1
0
        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));
 }
예제 #4
0
 public string Serialize()
 {
     return(SimpleSerializer.Serialize(Name, Value));
 }