Commit Graph

1218 Commits

Author SHA1 Message Date
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 ea3a1d2bbe
🏷 Bump to 1.2.2-alpha.2 2019-12-27 01:19:52 +00: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 b17a08babf
🏷 Bump to 1.2.1 2019-12-25 13:55:20 +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 5e0cff8b81
🏷 Bump to 1.2.0 2019-12-24 16:16:59 +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 736a996837
⬆ Bump to 1.2.0-alpha 2019-12-18 13:05:03 +00:00
Oliver Booth 33fff6be51
💩 Deprecating API found in Humanizer package 2019-12-18 13:04:23 +00:00
Oliver Booth 4c94fd32a6
📚 Fix README table formatting 2019-12-17 18:37:24 +00:00
Oliver Booth bf3f97f3f2
🏷 Bump to 1.1.0 2019-12-17 13:06:39 +00:00
Oliver Booth 1314901d25
🎨 Add package icon 2019-12-17 13:06: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
Oliver Booth 7777409b26
📜 Add LICENSE to project 2019-12-17 12:08:46 +00:00
Oliver Booth 0bdfbf6b75
Add package info 2019-12-17 12:06:33 +00:00
Oliver Booth 71be8871a7
⬆ <LangVersion> use 8.0 2019-12-17 11:55:59 +00:00
Oliver Booth 965054963c
📚 Fix XML doc
"lower" is exclusive arg
2019-12-17 11:54:06 +00:00
Oliver Booth f66c08425f
Add Control.GetAllControls 2019-12-17 11:53:37 +00:00
Oliver Booth d246abd397
🔨 Reduce code complexity in DateTime.Last 2019-12-17 11:51:24 +00:00
Oliver Booth d2208f2f6a
Add Int64.IsPrime 2019-12-17 11:50:54 +00:00
Oliver Booth b0e5073b39
Add DictionaryExtensions 2019-12-17 11:50:27 +00:00
Oliver Booth b2455d1bcd
Add IsEven and IsOdd for integral types 2019-12-16 17:55:55 +00:00
Oliver Booth 9844bccd28
🔥 Remove TimeSpan.Ago
Humanizer package fulfills this feature
2019-12-16 17:54:19 +00:00
Oliver Booth a699446112
Add String.Split(int chunkSize) 2019-12-11 00:14:15 +00:00
Oliver Booth 9b5e02b5a1
🐞 Fix invalid reference 2019-11-19 15:29:29 +00:00
Oliver Booth ea7fb5953c
📚 Update README and add children README files 2019-11-19 15:25:12 +00:00
Oliver Booth 75a37d44d4
🔨 Use block bodies instead of expression bodies 2019-11-19 15:15:32 +00:00
Oliver Booth a67fd274fa
🐞 Fix bug ensuring timestamp is UTC 2019-11-16 20:18:19 +00:00
Oliver Booth 10fea0b372
🔨 Use DateTimeOffset to convert Unix timestamps 2019-11-16 20:16:47 +00:00
Oliver Booth 0344851c32
⬆ Build against .NET Standard 2.0 2019-11-16 20:11:06 +00:00
Oliver Booth e9f0a94cad
🔥 Remove Days() from IComparable 2019-11-16 11:18:19 +00:00
Oliver Booth c3d1b035c0
📚 Use consistent XML doc wording across classes 2019-11-16 11:17:31 +00:00
Oliver Booth bb2dedccad
📚 Add XML doc to StructExtensions 2019-11-16 11:15:21 +00:00
Oliver Booth d1d89de250
Add IList<T> overloads for Shuffle<T>() 2019-11-16 11:11:03 +00:00
Oliver Booth 3b0c304f54
🔨 Call Array.Empty<T>() in Stream.GetHash<T>() 2019-11-16 11:09:04 +00:00
Oliver Booth a14de1fa96
🔨 Rename unused lambda parameter in Shuffle() 2019-11-16 11:07:53 +00:00
Oliver Booth 2df13450a0
🔨 Call overloads to reduce code duplication 2019-11-16 11:04:02 +00:00