|  |  | 1 |  | using Newtonsoft.Json.Linq; | 
|  |  | 2 |  | using ValidateLib.ErrorsAndWarnings.Warnings; | 
|  |  | 3 |  | using ValidateLib.Metadata.Descriptors; | 
|  |  | 4 |  | using ValidateLib.Metadata.Properties.AtomicProperties; | 
|  |  | 5 |  |  | 
|  |  | 6 |  | namespace ValidateLib.Metadata.PropertyParsers.DIalect | 
|  |  | 7 |  | { | 
|  |  | 8 |  |     internal class QuoteCharPropertyParser : PropertyParserBase<DialectDescriptor>, IPropertyParser<DialectDescriptor> | 
|  |  | 9 |  |     { | 
|  | 1 | 10 |  |         public QuoteCharPropertyParser(List<Warning> warnings, DialectDescriptor descriptor) : base(warnings, descriptor | 
|  |  | 11 |  |         { | 
|  | 1 | 12 |  |         } | 
|  |  | 13 |  |  | 
|  |  | 14 |  |         public void ParseProperty(JProperty property) | 
|  |  | 15 |  |         { | 
|  | 1 | 16 |  |             if (property.Value.Type == JTokenType.Null) | 
|  | 0 | 17 |  |                 Descriptor.quoteChar = new AtomicPropertyString(null); | 
|  | 1 | 18 |  |             else if (property.Value.Type == JTokenType.String) | 
|  | 1 | 19 |  |                 Descriptor.quoteChar = new AtomicPropertyString(property.Value.ToString()); | 
|  |  | 20 |  |             else | 
|  |  | 21 |  |             { | 
|  | 1 | 22 |  |                 Warnings.Add(WarningFactory.GetQuoteCharWrongValueWarning(property.Value.ToString(), property.Value.Type | 
|  | 1 | 23 |  |                 Descriptor.quoteChar = new AtomicPropertyString("\""); | 
|  |  | 24 |  |             } | 
|  | 1 | 25 |  |         } | 
|  |  | 26 |  |     } | 
|  |  | 27 |  | } |