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; }
public PatternDto(Pattern pattern, UstNodeSerializationFormat dataFormat, string data) { Key = pattern.Key; Description = pattern.DebugInfo; Languages = pattern.Languages; FilenameWildcard = pattern.FilenameWildcard; DataFormat = dataFormat; Value = data; }
public PatternConverter(IUstNodeSerializer serializer, UstNodeSerializationFormat format = UstNodeSerializationFormat.Json) : this(new[] { serializer }, format) { }