These are chat archives for Nethereum/Nethereum

11th
Feb 2017
Dean P. Ottewell
@deanott
Feb 11 2017 19:59

Was wondering if it is possible to cast data object of a struct within a contract that has a mapping type to another struct to a function output?

For example something like this from the solidity examples->

struct Funder {
address addr;
uint amount;
}

struct Campaign {
    address beneficiary;
    uint fundingGoal;
    uint numFunders;
    uint amount;
    mapping (uint => Funder) funders;
}
I had a look through myself but couldn't find a way to do this :)