in jetbrains-rider/ReSharper.AWS/src/AWS.Localization/JavaPropertiesLoader.cs [46:63]
private void Load(Stream stream)
{
if (stream.Length == 0) return;
if (!stream.CanRead) throw new FileLoadException("Unable to read .properties file");
using (var reader = new StreamReader(stream))
{
string line;
while ((line = reader.ReadLine()?.Trim()) != null)
{
if (line.Length == 0 || line.StartsWith("#") || !line.Contains("=")) continue;
// Consider all "="'s after the first match as the part of a value string.
var keyValuePair = line.Split('=');
myLocalizedStrings[keyValuePair[0]] = string.Join("", keyValuePair.Skip(1));
}
}
}