Beispiel #1
0
 public IEnumerable <string> ReadString(IEnumerable <IVariable> variables)
 {
     return(Read(
                variables,
                Marshalling.CreateArray(variables.Count()),
                (a, b, c, d) => _library.fmi2GetString(a, b, c, d)
                ).Select(r => Marshalling.GetString(r)));
 }
Beispiel #2
0
 public string ReadString(IVariable variable)
 {
     return(Marshalling.GetString(Read(variable, new IntPtr(),
                                       (a, b, c, d) => _library.fmi2GetString(a, b, c, d))));
 }