Tag Archives: objects

Extract part of a JSON file in C#

This example shows how to read a JSON file and pick out only the pieces that are interesting. Recall from my post Anatomy of an example that my original goal with this series of articles was to write a program … Continue reading

Posted in algorithms, files, serialization | Tagged , , , , , , , , , , , , , | 1 Comment

Use JSON to serialize and deserialize objects in C#

JSON (JavaScript Object Notation) is a standard for textual storage and interchange of information, much as XML is. Before you roll your eyes and ask if we really need another language to do what XML does, consider how verbose XML … Continue reading

Posted in algorithms, serialization | Tagged , , , , , , , , , , , , | 1 Comment

Enumerate pairs of objects in arrays or IEnumerables in C#

Sometimes it’s useful to enumerate pairs of objects in an array or enumerable. For example, if you have an array holding volleyball teams, the pairs would list each of the possible matches you could make. If the teams are A, … Continue reading

Posted in arrays, combinatorics, extension methods | Tagged , , , , , , , , , , , , , | Leave a comment