Serialization manager class
More...
Serialization manager class
Definition at line 35 of file Manager.cs.
Utilities.IO.Serializers.Manager.Manager |
( |
IEnumerable< ISerializer > |
Serializers | ) |
|
Constructor
- Parameters
-
Definition at line 41 of file Manager.cs.
bool Utilities.IO.Serializers.Manager.CanSerialize |
( |
string |
ContentType | ) |
|
Determines if the system can serialize/deserialize the content type
- Parameters
-
- Returns
- True if it can, false otherwise
Definition at line 64 of file Manager.cs.
object Utilities.IO.Serializers.Manager.Deserialize< T > |
( |
T |
Data, |
|
|
Type |
ObjectType, |
|
|
string |
ContentType = "application/json" |
|
) |
| |
Deserializes the data to an object
- Template Parameters
-
- Parameters
-
Data | Data to deserialize |
ObjectType | Object type requested |
ContentType | Content type (MIME type) |
- Returns
- The deserialized object
Definition at line 92 of file Manager.cs.
R Utilities.IO.Serializers.Manager.Deserialize< T, R > |
( |
T |
Data, |
|
|
string |
ContentType = "application/json" |
|
) |
| |
Deserializes the data to an object
- Template Parameters
-
T | Data type |
R | Return object type |
- Parameters
-
Data | Data to deserialize |
ContentType | Content type (MIME type) |
- Returns
- The deserialized object
Definition at line 78 of file Manager.cs.
string Utilities.IO.Serializers.Manager.FileTypeToContentType |
( |
string |
FileType | ) |
|
File type to content type
- Parameters
-
- Returns
- Content type
Definition at line 107 of file Manager.cs.
T Utilities.IO.Serializers.Manager.Serialize< T > |
( |
object |
Object, |
|
|
Type |
ObjectType, |
|
|
string |
ContentType = "application/json" |
|
) |
| |
Serializes the object based on the content type specified
- Parameters
-
ObjectType | Object type |
Object | Object to serialize |
ContentType | Content type (MIME type) |
- Template Parameters
-
- Returns
- The serialized object as a string
Definition at line 134 of file Manager.cs.
R Utilities.IO.Serializers.Manager.Serialize< T, R > |
( |
T |
Object, |
|
|
string |
ContentType = "application/json" |
|
) |
| |
Serializes the object based on the content type specified
- Template Parameters
-
- Parameters
-
Object | Object to serialize |
ContentType | Content type (MIME type) |
- Template Parameters
-
- Returns
- The serialized object as a string
Definition at line 120 of file Manager.cs.
override string Utilities.IO.Serializers.Manager.ToString |
( |
| ) |
|
Outputs information about the serializers the system is using
- Returns
- String version of the object
Definition at line 148 of file Manager.cs.
IDictionary<string, ISerializer> Utilities.IO.Serializers.Manager.Serializers |
|
getprotected |
The documentation for this class was generated from the following file: