protected virtual string AsString(
TResult result
)
Protected Overridable Function AsString (
result As TResult
) As String
protected:
virtual String^ AsString(
TResult result
)
abstract AsString :
result : 'TResult -> string
override AsString :
result : 'TResult -> string
If TResult is a byte[], then it is returned as a raw string with Encoding.Default encoding (similarly to a HEX editor), while non-whitespace control characters are replaced by square characters (□).
Zero characters are replaced also if TResult is String.
If TResult is IEnumerable, then the string representation of elements (simply by ToString) are concatenated.
In any other case returns the result of ToString for result, or a localized string for null, if result is .