ArgumentArity Struct

Definition

Represents the arity (minimum and maximum number of arguments) for a command line argument.

C#
public readonly struct ArgumentArity : IEquatable<Microsoft.Testing.Platform.Extensions.CommandLine.ArgumentArity>
Inheritance
ArgumentArity
Implements

Remarks

This is taken from https://learn.microsoft.com/dotnet/standard/commandline/syntax#argument-arity.

Constructors

ArgumentArity(Int32, Int32)

Represents the arity (minimum and maximum number of arguments) for a command line argument.

Fields

ExactlyOne

Represents an argument arity of exactly one.

OneOrMore

Represents an argument arity of one or more.

Zero

Represents an argument arity of zero.

ZeroOrMore

Represents an argument arity of zero or more.

ZeroOrOne

Represents an argument arity of zero or one.

Properties

Max

Gets the maximum number of arguments.

Min

Gets the minimum number of arguments.

Methods

Equals(ArgumentArity)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

Operators

Equality(ArgumentArity, ArgumentArity)

Determines whether two instances of ArgumentArity are equal.

Inequality(ArgumentArity, ArgumentArity)

Determines whether two instances of ArgumentArity are not equal.

Applies to

製品 バージョン
Microsoft Testing Platform 1.0.2, 1.1.0, 1.2.1, 1.3.2, 1.4.3, 1.5.3, 1.6.0