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))); }
public string ReadString(IVariable variable) { return(Marshalling.GetString(Read(variable, new IntPtr(), (a, b, c, d) => _library.fmi2GetString(a, b, c, d)))); }