I'm currently attempting to present several enum's to the UI, albeit in a more friendly manner than a concatenated string.
public enum StoreMethod
{
// Insert To Front
InsertToFront,
// Insert to End
InsertToEnd,
// Overwrite Existing
OverwriteExisting,
// Throw Exception If Exists
ThrowExceptionIfExists
}
If I were to .ToString() on one of the values of the enum I'd get the string as written above. What I'd like is a regular expression to automatically insert a space before the any capital letters (with the exception of the first) or use a built-in BCL method (if one exists). The result of each would be as the comment indicates.
Is there a BCL method to be able to deconcatenate a string? or would a regular expression need to be used to achieve the results?