Commit Graph

1160 Commits

Author SHA1 Message Date
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
Oliver Booth ae4f7f7b38
🔨 Call OneOf() overload to reduce duplication 2019-11-16 11:02:20 +00:00
Oliver Booth 8c39914547
Add Random.CoinToss()
CoinToss() returns true if the next random number == 2, false otherwise
2019-11-16 11:01:00 +00:00
Oliver Booth 5da34dd762
Add month-based DateTime returns for Int32 2019-11-16 11:00:02 +00:00
Oliver Booth 120ea9562e
Add ListExtensions.Shuffle<T>()
Shuffle<T>() returns the source enumerable ordered randomly
2019-11-16 02:12:15 +00:00
Oliver Booth cd04c1b66f
🔨 Add meaningful implementation of Ago()
Ago() now returns a human-readable string instead of a DateTime
2019-11-16 02:10:16 +00:00
Oliver Booth 1712dbaa02
💄 Fix spacing between methods 2019-11-16 02:06:25 +00:00
Oliver Booth 90e4552415
Add EndPointExtensions
GetHost() returns the hostname of the endpoint which will either be the
value of DnsEndPoint.Host or IPEndPoint.Address

GetPort() returns the port of the endpoint.
2019-11-16 02:04:47 +00:00
Oliver Booth d037b7f948
Add ListViewExtensions
MoveToTop() moves the selected list item to the top of the list view by
removing the item, and inserting it at index 0.
2019-11-16 02:01:31 +00:00