Class BytesToStringConverter
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public class BytesToStringConverter : IGenericConverter
- Inheritance
-
BytesToStringConverter
- Implements
- Inherited Members
Constructors
BytesToStringConverter(Encoding)
public BytesToStringConverter(Encoding charset)
Parameters
charsetEncoding
Properties
ConvertibleTypes
Gets the source and target types this converter can convert between.
public ISet<(Type Source, Type Target)> ConvertibleTypes { get; }
Property Value
Methods
Convert(object, Type, Type)
Convert the source object to the target type.
public object Convert(object source, Type sourceType, Type targetType)
Parameters
sourceobjectthe object to convert; the source can be null
sourceTypeTypethe type of the source that should be used during the conversion. Can be null, and defaults to the type of the source object
targetTypeTypethe type we are converting to
Returns
- object
the converted object