public static string[] GetLocalGroupUserList(string groupName)
{
if ((object)groupName == null)
throw new ArgumentNullException(nameof(groupName));
// Remove any irrelevant white space
groupName = groupName.Trim();
if (groupName.Length == 0)
throw new ArgumentException("Cannot get members for local group: no group name was specified.", nameof(groupName));
groupName = ValidateGroupName(groupName);
if (Common.IsPosixEnvironment)
return UnixUserInfo.GetLocalGroupUserList(groupName);
return WindowsUserInfo.GetLocalGroupUserList(groupName);
}