Table of Contents

Class StrategyStringLengthAttribute

Namespace
Conjecture.Core
Assembly
Conjecture.Core.dll

Constrains generated string length to [minLength, maxLength].

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class StrategyStringLengthAttribute : Attribute
Inheritance
StrategyStringLengthAttribute
Inherited Members

Constructors

StrategyStringLengthAttribute(int, int)

Constrains generated string length to [minLength, maxLength].

public StrategyStringLengthAttribute(int minLength, int maxLength)

Parameters

minLength int
maxLength int

Properties

MaxLength

Gets the maximum generated string length.

public int MaxLength { get; }

Property Value

int

MinLength

Gets the minimum generated string length.

public int MinLength { get; }

Property Value

int