Skip to content

Commit 7ac02c0

Browse files
committed
Update readme.
1 parent 2768ff5 commit 7ac02c0

File tree

2 files changed

+34
-5
lines changed

2 files changed

+34
-5
lines changed

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<br/>
77

88
# FluentExtensions
9-
Fluent Extensions is a set of more than 70 .NET extensions, it especially made for helping developers to focus on the main tasks rather than get distracted by writing the same code again and again.
9+
Fluent Extensions is a set of more than 80 .NET extensions, it especially made for helping developers to focus on the main tasks rather than get distracted by writing the same code again and again.
1010

1111
### Install FluentExtensions via NuGet
1212

@@ -91,6 +91,20 @@ string RandomDigits(this int length);
9191

9292
// Generating Random Numbers.
9393
string GenerateRandomString(this int length, bool isUpperCase = false, bool containNumbers = false);
94+
95+
// Converts given number to kilobytes.
96+
double ToKB(this int number, DigitalStorage from = DigitalStorage.KB);
97+
98+
// Converts given number to megabytes.
99+
double ToMB(this int number, DigitalStorage from = DigitalStorage.MB);
100+
101+
// Converts the given number to gigabytes.
102+
double ToGB(this int number, DigitalStorage from = DigitalStorage.GB);
103+
104+
// Converts the given number to terabytes.
105+
double ToTB(this int number, DigitalStorage from = DigitalStorage.TB)
106+
107+
94108
```
95109

96110
#### Extensions to Strings
@@ -165,6 +179,21 @@ string ReadFromDisk(this string path);
165179

166180
// Gets the content of the text file asynchronously.
167181
Task<string> ReadFromDiskAsync(this string path);
182+
183+
// Adds text to end of another text.
184+
string AddToEnd(this string text, string textToAdd, bool addSpaceBeforeAddition = true);
185+
186+
// Adds text to start of another text.
187+
string AddToStart(this string text, string textToAdd, bool addSpaceAfterAddition = true);
188+
189+
// Gets portion of string based on given characters and position to get.
190+
string Take(this string source, int characters, Position from = Position.Start);
191+
192+
// Replaces multiple values inside a string with one value.
193+
string ReplaceMultipleWithOne(this string source, string[] values, string value);
194+
195+
196+
168197
```
169198

170199
#### Extensions to DateTime

src/FluentExtensions/NumberEx.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public static string GenerateRandomString(this int length, bool isUpperCase = fa
264264
}
265265

266266
/// <summary>
267-
/// Converts given number to kilobytes.
267+
/// Converts the given number to kilobytes.
268268
/// </summary>
269269
/// <param name="number">Number to convert.</param>
270270
/// <returns>Kilobytes based on given number.</returns>
@@ -285,7 +285,7 @@ public static double ToKB(this int number, DigitalStorage from = DigitalStorage.
285285
}
286286

287287
/// <summary>
288-
/// Converts given number to megabytes.
288+
/// Converts the given number to megabytes.
289289
/// </summary>
290290
/// <param name="number">Number to convert.</param>
291291
/// <param name="from">From type.</param>
@@ -307,7 +307,7 @@ public static double ToMB(this int number, DigitalStorage from = DigitalStorage.
307307
}
308308

309309
/// <summary>
310-
/// Converts given number to gigabytes.
310+
/// Converts the given number to gigabytes.
311311
/// </summary>
312312
/// <param name="number">Number to convert.</param>
313313
/// <param name="from">From type.</param>
@@ -329,7 +329,7 @@ public static double ToGB(this int number, DigitalStorage from = DigitalStorage.
329329
}
330330

331331
/// <summary>
332-
/// Converts given number to terabytes.
332+
/// Converts the given number to terabytes.
333333
/// </summary>
334334
/// <param name="number">Number to convert.</param>
335335
/// <param name="from">From type.</param>

0 commit comments

Comments
 (0)