<commit_before>C#
---

* full support
* [generator](../pseudo/generators/csharp_generator.py) [api translator](../pseudo/api_translators/csharp_translator.py) [tests](../tests/test_csharp.py)
* target version: C# 4+

C# equivalents used for pseudo types and concepts:


| Pseudo           | C#                                     |
|------------------|----------------------------------------|
| List[T]          | List\<T\>                      	    |
| Dictionary[K, V] | Dictionary\<K, V\>                     |
| Set[T]           | Set\<T\>                               |
| Tuple[T1, T2..]  | a custom class or Tuple\<T1, T2..\>    |
| Array[T, count]  | T[]                                    |
| Int              | int                                    |
| Float            | float                                  |
| String           | string                                 |
| for-loops        | foreach, for                           |
| classes          | classes                                |
| methods          | methods                                |
| functions        | static methods of main class           |


# niceties

* Converting tuples to classes and automatically inferring meaningful names for them based on usage in the program: e.g. in [football.cs](../examples/football.py):
  
  ```python<commit_msg>Update csharp.md<commit_after>C#
---

* support for all Pseudo v0.2 features
* [generator](../pseudo/generators/csharp_generator.py) [api translator](../pseudo/api_translators/csharp_translator.py) [tests](../tests/test_csharp.py)
* target version: C# 4+

C# equivalents used for pseudo types and concepts:


| Pseudo           | C#                                     |
|------------------|----------------------------------------|
| List[T]          | List\<T\>                      	    |
| Dictionary[K, V] | Dictionary\<K, V\>                     |
| Set[T]           | Set\<T\>                               |
| Tuple[T1, T2..]  | a custom class or Tuple\<T1, T2..\>    |
| Array[T, count]  | T[]                                    |
| Int              | int                                    |
| Float            | float                                  |
| String           | string                                 |
| for-loops        | foreach, for                           |
| classes          | classes                                |
| methods          | methods                                |
| functions        | static methods of main class           |


# niceties

* Converting tuples to classes and automatically inferring meaningful names for them based on usage in the program: e.g. in [football.cs](../examples/football.py):
  
  ```python
{'fraction_non_alphanumeric': 0.15083179297597044, 'fraction_numerical': 0.0044362292051756, 'mean_word_length': 0.9723032069970845, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5850032', 'n_tokens_mistral': 725, 'n_tokens_neox': 658, 'n_words': 166}