Show / Hide Table of Contents

Class ArgumentsExtractor

Utility class for simplifying the process of extracting CommandArguments from a Command received by the server.

Inheritance
object
ArgumentsExtractor
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Petabridge.Cmd.Common
Assembly: Petabridge.Cmd.Common.dll
Syntax
public static class ArgumentsExtractor

Methods

ExtractArgs(CommandDefinition, Command)

For a given CommandDefinition, extract all of the arguments from a Command of the same type and return them into an easily accessible ParsedArguments collection.

Declaration
public static ParsedArguments ExtractArgs(this CommandDefinition definition, Command cmd)
Parameters
Type Name Description
CommandDefinition definition

The command definition.

Command cmd

The command of the same type as [definition].

Returns
Type Description
ParsedArguments

A ParsedArguments collection.

In this article
Back to top Generated by DocFX