ZeroInstall.Store.Model.Element.GetCommand C# (CSharp) Method

GetCommand() private method

private GetCommand ( [ name ) : Command
name [
return Command
        public Command GetCommand([NotNull] string name)
        {
            #region Sanity checks
            if (string.IsNullOrEmpty(name)) throw new ArgumentNullException(name);
            #endregion

            return Commands.FirstOrDefault(command => command != null && command.Name == name);
        }