Esempio n. 1
0
 public PatternConverter(IEnumerable <IUstNodeSerializer> serializers, UstNodeSerializationFormat format = UstNodeSerializationFormat.Json)
 {
     UstNodeSerializers = new Dictionary <UstNodeSerializationFormat, IUstNodeSerializer>();
     foreach (var serializer in serializers)
     {
         UstNodeSerializers[serializer.DataFormat] = serializer;
     }
     ConvertBackFormat = format;
 }
Esempio n. 2
0
        public PatternDto(Pattern pattern, UstNodeSerializationFormat dataFormat, string data)
        {
            Key              = pattern.Key;
            Description      = pattern.DebugInfo;
            Languages        = pattern.Languages;
            FilenameWildcard = pattern.FilenameWildcard;

            DataFormat = dataFormat;
            Value      = data;
        }
Esempio n. 3
0
 public PatternConverter(IUstNodeSerializer serializer, UstNodeSerializationFormat format = UstNodeSerializationFormat.Json)
     : this(new[] { serializer }, format)
 {
 }