Extension methods for objects.
More...
|
static byte[] | BNToByteArray (this object obj) |
| Converts an object to a byte-array (as JSON).
|
|
static T | BNToObject< T > (this byte[] bytes) |
| Converts a byte-array (as JSON) to an object.
|
|
static string | BNToString (this object? obj) |
| Adds a generic ToString-method to objects.
|
|
Extension methods for objects.
◆ BNToByteArray()
static byte[] BogaNet.Extension.ObjectExtension.BNToByteArray |
( |
this object | obj | ) |
|
|
static |
Converts an object to a byte-array (as JSON).
- Parameters
-
- Returns
- Byte-array with the object
- Exceptions
-
◆ BNToObject< T >()
static T BogaNet.Extension.ObjectExtension.BNToObject< T > |
( |
this byte[] | bytes | ) |
|
|
static |
Converts a byte-array (as JSON) to an object.
- Parameters
-
- Returns
- Object from the byte-array
- Exceptions
-
◆ BNToString()
static string BogaNet.Extension.ObjectExtension.BNToString |
( |
this object? | obj | ) |
|
|
static |
Adds a generic ToString-method to objects.
- Parameters
-
obj | Object for the generic ToString |
- Returns
- Generic ToString
The documentation for this class was generated from the following file:
- /Users/stefanlaubenberger/Projects/CSharp/BogaNet/BogaNet.Common/Extension/ObjectExtension.cs