Table of Contents

Class StringToGuidConverter

Namespace
Steeltoe.Common.Converter
Assembly
Steeltoe.Common.dll
public class StringToGuidConverter : AbstractConverter<string, Guid>, IConditionalGenericConverter, IConditionalConverter, IGenericConverter, IConverter<string, Guid>
Inheritance
StringToGuidConverter
Implements
Inherited Members

Methods

Convert(object, Type, Type)

Convert the source object to the target type.

public override object Convert(object source, Type sourceType, Type targetType)

Parameters

source object

the object to convert; the source can be null

sourceType Type

the type of the source that should be used during the conversion. Can be null, and defaults to the type of the source object

targetType Type

the type we are converting to

Returns

object

the converted object

Convert(string)

Convert the source object of type S to a target object of type T.

public override Guid Convert(string source)

Parameters

source string

the source object to convert; can not be null

Returns

Guid

the converted object which must be type T