Переделывание демки без сериализатора пока
This commit is contained in:
1 parent
8f891ff59e
commit
b5b766342e
7 files changed
+22
-20
No files matched your search
@@ -160,6 +160,9 @@ namespace mROA.Cbor
|
||||
private void WriteObject(object obj, CborWriter writer, IEndPointContext? context)
|
||||
{
|
||||
var type = obj.GetType();
|
||||
|
||||
|
||||
|
||||
var properties = FilterProperties(type.GetProperties());
|
||||
var values = properties.Select(property => property.GetValue(obj)).ToList();
|
||||
WriteList(values, writer, context);
|
||||
|
||||
Reference in new issue
Block a user