Skip to content
TheCodeKing edited this page Jul 16, 2011 · 2 revisions

Overview | Default Behaviour

The following table shows the default behaviour for the given types when populating and creating instances. The default value varies based on whether the object is created directly (such as as for a constructor), or whether it's being used to set a member on another object. See example usage.

Default Behaviour New Instances Member Instances
string string MemberName
Uri http://uri/ http://membername/
FileInfo C:\filename C:\membername
DirectoryInfo C:\directoryname C:\membername
IntPtr IntPtr.Zero IntPtr.Zero
Guid Guid.NewGuid() Guid.NewGuid()
CultureInfo Thread.CurrentThread.CurrentCulture Thread.CurrentThread.CurrentCulture

By default the Max() configuration is set, and all value types default to their Max value.

Clone this wiki locally