public LocalizationCode(string textCode, LocalizationSourceType sourceType = LocalizationSourceType.Any) { SourceType = sourceType; if (string.IsNullOrWhiteSpace(textCode)) { throw new ArgumentException("Localization code should not be empty", nameof(textCode)); } TextCode = textCode; }
public LocalizationSource(string path, LocalizationSourceType type) { Path = path; Type = type; }