IGLib
1.7.2
The IGLib base library for development of numerical, technical and business applications.
|
Auxiliary base class for DTOs, contains some static methods. Provided for simplicity, such that one does not need to state type parameters More...
Static Public Member Functions | |
static ObjectType | CopyToObjectReturned< DtoType, ObjectType > (DtoType dto, ObjectType obj) |
Replacement for CopyToObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which object state is copied. More... | |
static void | CopyToObject< DtoType, ObjectType > (DtoType dto, ref ObjectType obj) |
Copies object state form the specified DTO (data transfer object) to the specified object. More... | |
static DtoType | CopyFromObjectReturned< DtoType, ObjectType > (ObjectType obj, DtoType dto) |
Replacement for CopyFromObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which object state is copied. More... | |
static void | CopyFromObject< DtoType, ObjectType > (ObjectType obj, ref DtoType dto) |
Copies object state form the specified object to the corresponding DTO (data transfer object). More... | |
static ObjectType[] | CopyArrayToObjectReturned< DtoType, ObjectType > (DtoType[] tabDto, ObjectType[] tabObj) |
Replacement for CopyArrayToObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which data is copied. More... | |
static void | CopyArrayToObject< DtoType, ObjectType > (DtoType[] tabDto, ref ObjectType[] tabObj) |
Copies array of DTOs (Data Transfer Objects) to an array of appropriate objects. More... | |
static DtoType[] | CopyArrayFromObjectReturned< DtoType, ObjectType > (ObjectType[] tabObj, DtoType[] tabDto) |
Replacement for CopyArrayFromObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which data is copied. More... | |
static void | CopyArrayFromObject< DtoType, ObjectType > (ObjectType[] tabObj, ref DtoType[] tabDto) |
Copies array of objects to an array of DTOs. More... | |
static List< ObjectType > | CopyListToObjectReturned< DtoType, ObjectType > (DtoType[] tabDto, List< ObjectType > listObj) |
Replacement for CopyListToObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which data is copied. More... | |
static void | CopyListToObject< DtoType, ObjectType > (DtoType[] tabDto, ref List< ObjectType > listObj) |
Copies array of DTOs (Data Transfer Objects) to a list of appropriate objects. More... | |
static DtoType[] | CopyListFromObjectReturned< DtoType, ObjectType > (List< ObjectType > tabObj, DtoType[] tabDto) |
Replacement for CopyArrayFromObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which data is copied. More... | |
static void | CopyListFromObject< DtoType, ObjectType > (List< ObjectType > tabObj, ref DtoType[] tabDto) |
Copies array of objects to a list of DTOs. More... | |
Protected Member Functions | |
SerializationDto () | |
Auxiliary base class for DTOs, contains some static methods. Provided for simplicity, such that one does not need to state type parameters
|
inlineprotected |
|
inlinestatic |
Replacement for CopyToObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which object state is copied.
DtoType | : | class | |
DtoType | : | ISerializationDtoAux<ObjectType> | |
DtoType | : | new() | |
ObjectType | : | class |
|
inlinestatic |
Copies object state form the specified DTO (data transfer object) to the specified object.
DtoType | Type of the DTO, must inherit from SerializationDtoBase{Type, BaseType}
|
dto | Data transfer object (DTO) from which data is copied. |
obj | Object to which data is copied. |
DtoType | : | class | |
DtoType | : | ISerializationDtoAux<ObjectType> | |
DtoType | : | new() | |
ObjectType | : | class |
|
inlinestatic |
Replacement for CopyFromObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which object state is copied.
DtoType | : | class | |
DtoType | : | ISerializationDtoAux<ObjectType> | |
DtoType | : | new() | |
ObjectType | : | class |
|
inlinestatic |
Copies object state form the specified object to the corresponding DTO (data transfer object).
DtoType | Type of the DTO, must inherit from SerializationDtoBase{Type, BaseType} and must have a public argumentlsee constructor. |
ObjectType | Type of the object. |
obj | Object from which data is copied. |
dto | Data transfer object (DTO) to which data is copied. |
DtoType | : | class | |
DtoType | : | ISerializationDtoAux<ObjectType> | |
DtoType | : | new() | |
ObjectType | : | class |
|
inlinestatic |
Replacement for CopyArrayToObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which data is copied.
tabObj = CopyArrayToObjectReturned<DtoType>(tabDto, tabObj);
DtoType | : | class | |
DtoType | : | ISerializationDtoAux<ObjectType> | |
DtoType | : | new() | |
ObjectType | : | class |
|
inlinestatic |
Copies array of DTOs (Data Transfer Objects) to an array of appropriate objects.
DtoType | Type of the DTO, must inherit from SerializationDtoBase{Type, BaseType} and must have a public argumentlsee constructor. |
ObjectType | Object type. |
tabDto | Table of DTOs from which data (object states) is copied. |
tabObj | Table of objects to which data (object states) is copied. |
DtoType | : | class | |
DtoType | : | ISerializationDtoAux<ObjectType> | |
DtoType | : | new() | |
ObjectType | : | class |
|
inlinestatic |
Replacement for CopyArrayFromObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which data is copied.
tabDto = CopyArrayFromObjectReturned<DtoType>(tabObj, tabDto)
DtoType | : | class | |
DtoType | : | ISerializationDtoAux<ObjectType> | |
DtoType | : | new() | |
ObjectType | : | class |
|
inlinestatic |
Copies array of objects to an array of DTOs.
DtoType | Type of the DTO, must inherit from SerializationDtoBase{Type, BaseType} and must have a public argumentlsee constructor. |
ObjectType | Object type. |
tabObj | Table of objects from which data (object states) is copied. |
tabDto | Table of DTOs to which data (object states) is copied. |
DtoType | : | class | |
DtoType | : | ISerializationDtoAux<ObjectType> | |
DtoType | : | new() | |
ObjectType | : | class |
|
inlinestatic |
Replacement for CopyListToObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which data is copied.
listObj = CopyListToObjectReturned<DtoType>(tabDto, listObj)
DtoType | : | class | |
DtoType | : | ISerializationDtoAux<ObjectType> | |
DtoType | : | new() | |
ObjectType | : | class |
|
inlinestatic |
Copies array of DTOs (Data Transfer Objects) to a list of appropriate objects.
DtoType | Type of the DTO, must inherit from SerializationDtoBase{Type, BaseType}
|
tabDto | Table of DTOs from which data (object states) is copied. |
listObj | List of objects to which data (object states) is copied. |
DtoType | : | class | |
DtoType | : | ISerializationDtoAux<ObjectType> | |
DtoType | : | new() | |
ObjectType | : | class |
|
inlinestatic |
Replacement for CopyArrayFromObject for cases where object can not be passed by reference. The returned object must be assigned to object (property, list element, etc.) to which data is copied.
tabDto = CopyArrayFromObjectReturned<DtoType>(tabObj, tabDto)
DtoType | : | class | |
DtoType | : | ISerializationDtoAux<ObjectType> | |
DtoType | : | new() | |
ObjectType | : | class |
|
inlinestatic |
Copies array of objects to a list of DTOs.
DtoType | Type of the DTO, must inherit from SerializationDtoBase{Type, BaseType} and must have a public argumentlsee constructor. |
ObjectType | Object type. |
tabObj | List of objects from which data (object states) is copied. |
tabDto | Table of DTOs to which data (object states) is copied. |
Parameter tabDto is an array because DTOs are normally not put into lists (since generic types can not be correctly serialized and deserialized by all kinds of serializers).
DtoType | : | class | |
DtoType | : | ISerializationDtoAux<ObjectType> | |
DtoType | : | new() | |
ObjectType | : | class |