Skip to content

Commit 62f7a56

Browse files
committed
Write docs for src/Files.App/Extensions
1 parent 244a7e2 commit 62f7a56

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/Files.App/Extensions/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# `src/Files.App/Extensions`
2+
3+
This folder contains extension classes that provide methods for performing operations such as localization and string manipulation.
4+
5+
---
6+
7+
For example, it contains the source file `Fractions.cs` which allows for converting double values into fractions.
8+
It also contains `LocalizationExtensions.cs` which allows the developer to insert a string with the following format:
9+
10+
```cs
11+
using Files.App.Extensions;
12+
13+
namespace Files.Example;
14+
15+
class Program
16+
{
17+
static void Main(string[] args)
18+
{
19+
private string _exampleResource
20+
=> "ExampleStringID".ToLocalized();
21+
}
22+
}
23+
```

0 commit comments

Comments
 (0)