コード例 #1
0
        private GenericCommandName ConvertProfieNameToGenericCommandName(ProfileName profileName)
        {
            if (!_profileNameToGenericCommandName.ContainsKey(profileName))
            {
                throw new ArgumentException($"Unable to convert {profileName.ToString()} to a GenericCommandName.", nameof(profileName));
            }

            return(_profileNameToGenericCommandName[profileName]);
        }