Remove Person Require People File,
PersonContainer and bug fix for GetRightPadded
This commit is contained in:
@ -31,4 +31,16 @@ internal abstract class Age
|
||||
return (years, result);
|
||||
}
|
||||
|
||||
internal static int? GetApproximateYears(string personDisplayDirectoryName, char[] chars)
|
||||
{
|
||||
int? result;
|
||||
const int zero = 0;
|
||||
string[] segments = personDisplayDirectoryName.Split(chars);
|
||||
if (segments.Length == 1 || !int.TryParse(segments[1].Split('-')[zero], out int years))
|
||||
result = null;
|
||||
else
|
||||
result = years;
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user