Skip to content

the useDefaultIfNull paramter in ToCharOrDefault method is useless #8

Description

@Sunzhuokai

https://github.com/zzzprojects/Z.ExtensionMethods/blob/master/src/Z.Core/System.Object/Convert/ToValueType/Object.ToCharOrDefault.cs#L53
Convert.ToChar(null) will throw a ArgumentNullException,So no matter the useDefaultIfNull is true or false the defaultValue always return

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions