コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyParser{T}"/> class.
 /// </summary>
 /// <param name="sourceName">Source name.</param>
 /// <param name="valueParser">Value parser.</param>
 /// <param name="targetProperty">Target property.</param>
 public PropertyParser(string?sourceName, IValueParser <T> valueParser, IProperty <T>?targetProperty)
 {
     SourceName     = sourceName ?? $"Undefined_{Guid.NewGuid()}";
     ValueParser    = valueParser.AssertArgumentNotNull(nameof(valueParser));
     TargetProperty = targetProperty ?? new Property <T>($"UndefinedTarget_{SourceName}");
 }