GenerateObjectSettingsChanceOfNull Property

Gets or sets the chance of generating a value when the type is compatible with .
Default value: 0.0.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public float ChanceOfNull { get; set; }

Property Value

Single
A floating point number between 0.0 and 1.0.

Remarks

  Note

If a reference type cannot be instantiated by the current settings a value will be created even if the value of this property is 0.0.

Exceptions

ArgumentOutOfRangeExceptionvalue is smaller than 0.0 or greater than 1.0.

See Also