Can not access Nodes property
NSFriend opened this issue · 3 comments
Can not access Nodes property as get the following error
CS0012: The type 'MapField<,>' is defined in an assembly that is not referenced. You must add a reference to assembly 'Yarn.Google.Protobuf, Version=3.15.0.0, Culture=neutral, PublicKeyToken=null'.
I try to access as follows: runner.yarnProject.Program.Nodes
The nodes inside of the program (and all of the program class) are protobuf data types and are not really intended to be accessed directly.
Can I ask why you are trying to get access to them?
Because we have wrapped the most common uses of the data without having to delve into the internals directly.
If you are after all nodes on the YarnProject
class there is a NodeNames
property which returns all node names.
If you are after headers for a node again on YarnProject
GetHeaders(nodeName)
method will return all headers on a particular node.
If you want initial values, the InitialValues
property provides this.
Finally if you want line IDs, the GetLineIDsForNodes
method will let you get these.