UriConverterCreateNonNullable Method

Creates a new TypeConverter<Uri> instance.

Definition

Namespace: FolkerKinzel.CsvTools.Mappings.TypeConverters
Assembly: FolkerKinzel.CsvTools.Mappings (in FolkerKinzel.CsvTools.Mappings.dll) Version: 1.1.0+1263e8243dc2cd78095f678f813d7d9c52ea4315
C#
public static TypeConverter<Uri> CreateNonNullable(
	Uri defaultValue,
	UriKind uriKind = UriKind.RelativeOrAbsolute,
	bool throwing = true
)

Parameters

defaultValue  Uri
The value of DefaultValue. The defaultValue must not be null and has to match the requirements of uriKind.
uriKind  UriKind  (Optional)
The type of the Uri.
throwing  Boolean  (Optional)
Sets the value of the Throwing property.

Return Value

TypeConverterUri
The newly created TypeConverter<Uri> instance.

Exceptions

ArgumentNullExceptiondefaultValue is null.
ArgumentExceptiondefaultValue does not match the requirements of uriKind.

See Also