.NET
cancel
Showing results forĀ 
ShowĀ Ā onlyĀ  | Search instead forĀ 
Did you mean:Ā 

Add a list of values or a ResultBuffer as TypedValue

1 REPLY 1
Reply
Message 1 of 2
reitec
712 Views, 1 Reply

Add a list of values or a ResultBuffer as TypedValue

I want to store a list of elements in a typed value:

I want to store the list in the ResultBuffer. But I don't want to store a single item, but a set of items. In my case a set of history entries and each of them contains three strings (index, reason for change and editor) and a date.

In the dictonary I want to store a XRecord "History with the complete data.

So I am able to assign a ResultBuffer with multiple TypedValues (n history entries). But how can I store the multiple values in a TypedValue, or is it possible to store a ResultBuffer as TypedValue?

 

A simple approach can be storing all values so that there 'll be n * 4 TypedValues per entry. But both 'll be poor if count of values per entry (example n * 5) changes later!

 

Any ideas?

 

 

1 REPLY 1
Message 2 of 2
Anonymous
in reply to: reitec

create a new dictionary inside of the dictionary, then add typed values for each unit of data.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

ā€Boost