public sealed class GenerateObjectSettings
Public NotInheritable Class GenerateObjectSettings
public ref class GenerateObjectSettings sealed
[<SealedAttribute>]
type GenerateObjectSettings = class end
GenerateObjectSettings | Initializes a new instance of the GenerateObjectSettings class |
AllowCreateObjectWithoutConstructor |
Gets or sets whether non-value type objects are allowed to be created without using the default constructor or (in case of collections) a constructor with a collection parameter.
Default value: . |
AllowDerivedTypesForNonSealedClasses |
Gets or sets whether a random derived type is allowed to be picked for non-sealed classes.
Default value: . |
AllowNegativeValues |
Gets or sets whether negative values are allowed when generating numbers.
Default value: . |
ChanceOfNull |
Gets or sets the chance of generating a value when the type is compatible with .
Default value: 0.0. |
CloseDateTimes |
Gets or sets whether close date and time values (current date plus-minus 100 years) should be produced when generating DateTime and DateTimeOffset values.
Default value: . |
CollectionsLength |
Gets or sets the length of the collections to generate.
It also affects the size of generated BigInteger instances (interpreted as the amount of 4 byte chunks to generate).
Default value: 1..2. |
FloatScale |
Gets or sets the scale for generating floating point numbers.
Default value: Auto. |
MaxRecursionLevel |
Gets or sets the maximum level of allowed recursion when generating objects, which contain members or elements of assignable types from their container types.
Default value: 1. |
ObjectInitialization |
Gets or sets the strategy for initializing a random generated object.
Default value: PublicFieldsAndProperties. |
PastDateTimes |
Gets or sets whether past date and time values should be produced when generating DateTime and DateTimeOffset instances.
Default value: . |
SentencesLength |
Gets or sets the length of the sentence strings to generate.
Default value: 30..60. |
StringCreation |
Gets or sets the strategy for generating strings. Set to auto select strategy by member name.
Default value: . |
StringsLength |
Gets or sets the length of the non-sentence strings to generate.
Default value: 4..10. |
SubstitutionForObjectType |
Gets or sets the type to be used when a type of Object has to be generated.
Default value: . |
TryResolveInterfacesAndAbstractTypes |
Gets or sets whether a random implementation should be picked for interfaces and abstract types.
Default value: . |
Convert |
Converts an Object specified in the obj parameter to the desired targetType.
See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example. (Defined by ObjectExtensions) |
ConvertTTarget |
Converts an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions) |
In |
Gets whether item is among the elements of set.
See the Examples section of the generic InT(T, T) overload for an example. (Defined by ObjectExtensions) |
TryConvert |
Tries to convert an Object specified in the obj parameter to the desired targetType.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example. (Defined by ObjectExtensions) |
TryConvert |
Tries to convert an Object specified in the obj parameter to the desired targetType.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example. (Defined by ObjectExtensions) |
TryConvertTTarget |
Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example. (Defined by ObjectExtensions) |
TryConvertTTarget |
Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example. (Defined by ObjectExtensions) |