Oliver Booth
b424a4b8ec
✨ Add string.Reverse
2020-10-20 14:59:02 +01:00
Oliver Booth
1601084cb4
✨ Add string.WithAlternative
2020-10-20 14:58:48 +01:00
Oliver Booth
6a1f05832e
✨ Add string.AsNullIfEmpty and string.AsNullIfWhiteSpace methods
2020-10-20 14:58:32 +01:00
Oliver Booth
f8541fd239
🧹 Code style cleanup
2020-07-15 14:31:02 +01:00
Oliver Booth
e747921fb7
✨ Add WaitHandle.WaitOneAsync
2020-07-15 14:03:23 +01:00
Oliver Booth
1ccb8b2457
✨ Add ReflectionExtensions
...
- `GetDefaultValue` and `GetDefaultValue<T>` - gets the value stored in
the member's `DefaultValue` attribute
- `GetDescription`- gets the value stored in the member's `Description`
attribute
- `SelectFromCustomAttribute<T1, T2>` - Internally calls
`GetCustomAttribute<T1>` and passes it to a `Func<T1, T2>` so that
specific members may be selected
2020-04-21 04:16:46 +01:00
Oliver Booth
11ffa43810
✨ Add string.IsUpper and string.IsLower
...
- IsLower:
Determines if all alpha characters in this string are considered
lowercase.
- IsUpper:
Determines if all alpha characters in this string are considered
uppercase.
2020-04-20 14:17:55 +01:00
Oliver Booth
72f9474e1c
🎖 Credit original author of string.EnumParse
2020-04-20 14:13:57 +01:00
Oliver Booth
5c447f1b02
✨ Add string.ChangeEncoding
...
Converts this string from one encoding to another, by using the
previously defined .GetBytes and .GetString as intermediary methods
2020-04-20 14:01:48 +01:00
Oliver Booth
31850220cc
🛠 Resolve RCS1277 violation
2020-04-19 14:17:33 +01:00
Oliver Booth
4c30c8228b
📕 Document return values in DateTimeExtensions
2020-04-19 14:14:59 +01:00
Oliver Booth
2dab2f30bb
🖼 Move string literals to project resource file
2020-04-19 14:14:29 +01:00
Oliver Booth
5034e1ceb4
👍 CLSCompliant assemblies
2020-04-19 14:13:46 +01:00
Oliver Booth
66d68b01bf
✨ Add ToInt16 and ToInt64 in BooleanExtensions
2020-04-18 23:38:33 +01:00
Oliver Booth
6be765a92d
🔨 Cast result instead of literals ToByte()
2020-04-18 23:30:09 +01:00
Oliver Booth
4461272f59
📕 Reword XML-doc in BooleanExtensions.cs
2020-04-18 23:13:30 +01:00
Oliver Booth
be5f450dbf
🎨 Ensure line length does not exceed 120 chars
2020-04-18 23:07:05 +01:00
Oliver Booth
1bee1952f9
🎨 Alphabetize method definitions
2020-04-18 23:05:57 +01:00
Timathy
a0de8ceb11
✨ Add logical operations in BooleanExtensions
...
Methods include:
* And
* Or
* Not
* XOr
* NAnd
* NOr
* XNOr
2020-04-18 22:50:26 +01:00
Oliver Booth
90f0e7efd4
🎨 Ensure codebase is StyleCop & FxCop compliant
2020-04-18 14:38:27 +01:00
Oliver Booth
a2f113237d
🛠 Various code cleanup
...
* Remove obsolete methods
* Fix implementation of DateTime.Last
* Reword XMLDoc for DateTime.Age
* Add overload for DateTime.Age to support "as of" parameter
2020-04-18 14:36:44 +01:00
Oliver Booth
11bc2415fc
🔨 Improve exception handling and rethrowing
2020-04-18 14:34:42 +01:00
Oliver Booth
373313f07e
✨ Change IE<byte>.Chunkify to IE<T>.Split
...
Thereby adding support for any IEnumerable<T>, and naming
convention is consistent with .NET and removes warnings of a
non-existent word
2020-04-18 14:31:29 +01:00
Oliver Booth
ba2e34a755
🔥 Remove obsolete methods
2020-04-18 14:29:03 +01:00
Oliver Booth
7b06abc253
🔨 Add static Random instance to RandomExtensions
...
To prevent creating new instances on every method call, library now
refers to a single static Random instance, when a random operation
is needed.
2020-04-18 14:27:15 +01:00
Oliver Booth
f0f346056a
🌐 Add culture-specific support
2020-04-18 14:23:56 +01:00
Oliver Booth
5f8458f185
🛠 Pre-allocate StringBuilder capacity
2020-04-17 18:03:50 +01:00
Oliver Booth
3afc1d967c
🔨 Fix SA1121 violation
2020-04-17 18:02:11 +01:00
Oliver Booth
0b85fa05e4
🔨 Fix SA1124 violation
2020-04-17 17:58:29 +01:00
Oliver Booth
02e9589b4f
✨ Add String.ToTimeSpan
2019-12-27 01:19:19 +00:00
Oliver Booth
ee3af80aca
🔨 Fix paramName in ArgumentException ctor
2019-12-25 13:56:16 +00:00
Oliver Booth
1e1aa0738a
🔨 Un-deprecate StringExtensions.EnumParse
...
Humanizer package doesn't necessarily return correct results
2019-12-25 13:54:54 +00:00
Oliver Booth
05edb47f92
✨ Add IEnumerable<byte>.Chunkify(int)
2019-12-24 16:16:40 +00:00
Oliver Booth
ec3ee98c85
🔥 Remove unused using
2019-12-24 16:15:10 +00:00
Oliver Booth
4da7484ed4
✨ Add String.Shuffle
2019-12-18 13:05:53 +00:00
Oliver Booth
42b59131a0
✨ Add Char[].Random and String.Random
2019-12-18 13:05:44 +00:00
Oliver Booth
33fff6be51
💩 Deprecating API found in Humanizer package
2019-12-18 13:04:23 +00:00
Oliver Booth
d14770c184
🔨 Rename SetTime to WithTime
2019-12-17 12:49:32 +00:00
Oliver Booth
61f84b93cf
🚚 Moved source into src/
2019-12-17 12:22:25 +00:00