Rename
editorconfig
This commit is contained in:
@ -26,7 +26,7 @@ internal class F_Random
|
||||
|
||||
private static ReadOnlyDictionary<string, List<string>> GetDayToRelativePaths(ReadOnlyCollection<Shared.Models.Mapping> mappingCollection, string dateFormat, ReadOnlyDictionary<int, List<long>> idToPersonKeys)
|
||||
{
|
||||
Dictionary<string, List<string>> results = new();
|
||||
Dictionary<string, List<string>> results = [];
|
||||
string key;
|
||||
DateTime dateTime;
|
||||
List<long>? personKeys;
|
||||
@ -45,7 +45,7 @@ internal class F_Random
|
||||
key = dateTime.ToString(dateFormat);
|
||||
if (!results.TryGetValue(key, out relativePaths))
|
||||
{
|
||||
results.Add(key, new());
|
||||
results.Add(key, []);
|
||||
if (!results.TryGetValue(key, out relativePaths))
|
||||
throw new Exception();
|
||||
}
|
||||
@ -62,8 +62,8 @@ internal class F_Random
|
||||
Random random = new();
|
||||
List<string>? collection;
|
||||
string dateFormat = "MM-dd";
|
||||
List<string> relativePaths = new();
|
||||
List<int> distinctCollection = new();
|
||||
List<string> relativePaths = [];
|
||||
List<int> distinctCollection = [];
|
||||
DateTime dateTime = new(2024, 1, 1); //Leap year
|
||||
ReadOnlyDictionary<int, List<long>> idToPersonKeys = Map.Models.Stateless.Methods.IMapLogic.GetIdToPersonKeys(personKeyToIds);
|
||||
ReadOnlyDictionary<string, List<string>> dayToRelativePaths = GetDayToRelativePaths(mappingCollection, dateFormat, idToPersonKeys);
|
||||
|
Reference in New Issue
Block a user