Skip to main content

TranslateListWithElements

Assembly: ServiceStack.Text.dll
View Source
Declaration
public static class TranslateListWithElements

Methods

TranslateToGenericICollectionCache(Object, Type, Type)

View Source
Declaration
public static object TranslateToGenericICollectionCache(object from, Type toInstanceOfType, Type elementType)
Returns

System.Object

Parameters
TypeName
System.Objectfrom
System.TypetoInstanceOfType
System.TypeelementType

TranslateToConvertibleGenericICollectionCache(Object, Type, Type)

View Source
Declaration
public static object TranslateToConvertibleGenericICollectionCache(object from, Type toInstanceOfType, Type fromElementType)
Returns

System.Object

Parameters
TypeName
System.Objectfrom
System.TypetoInstanceOfType
System.TypefromElementType

TryTranslateCollections(Type, Type, Object)

View Source
Declaration
public static object TryTranslateCollections(Type fromPropertyType, Type toPropertyType, object fromValue)
Returns

System.Object

Parameters
TypeName
System.TypefromPropertyType
System.TypetoPropertyType
System.ObjectfromValue