Skip to content

Testing for variables #19

@miloush

Description

@miloush

There doesn't seem to be an easy way to check if a variable exists in a given file, and unfortunately the IMatFile indexer throws an exception when a variable does not exist. It would be useful to have a more tolerant way to access variables, such as one of the following:

  • have IMatFile[string] return null if variable does not exist
  • add IMatFile.TryGetVariable(string, out IVariable) method
  • expose the underlying dictionary as IReadOnlyDictionary<string, IVariable>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions