ObjectInitialization Enumeration
Represents a strategy for initializing types when generating random objects.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public enum ObjectInitialization
Public Enumeration ObjectInitialization
public enum class ObjectInitialization
type ObjectInitialization
PublicFieldsAndProperties | 0 |
When initializing a new random object the public fields and public read-write properties are set (including non-public setters).
|
PublicProperties | 1 |
When initializing a new random object the public read-write properties (including non-public setters) are set.
|
Fields | 2 |
When initializing a new random object fields are set (including non-public and read-only ones). It has a high chance that the object will contain inconsistent data.
|