Commit Graph

1219 Commits

Author SHA1 Message Date
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
Oliver Booth ac10a5912e
Add StreamExtensions
GetHash<T>() computes the hash of the given stream using the specified
hashing algorithm.
2019-11-16 02:00:05 +00:00
Oliver Booth a01ef63ab0
💄Reformat files 2019-11-16 01:57:59 +00:00
Oliver Booth e537b9c727
Add ToBoolean()
ToBoolean() returns false if value is 0, true otherwise
2019-11-16 01:53:16 +00:00
Oliver Booth 445929e1b8
Add BooleanExtensions
ToInt32() returns 1 if value is true, 0 otherwise
2019-11-16 01:51:06 +00:00
Oliver Booth cae360edc3
Add Clamp() for integral types 2019-11-16 01:50:12 +00:00
Oliver Booth 44b6773cc8
🔥 Remove redundant else in ToSecureString 2019-11-16 01:47:39 +00:00
Oliver Booth 7c42f0632f
🔨 Add parameter to disambiguate ToString
Caller may want base SecureString.ToString()
2019-11-16 01:46:46 +00:00
Oliver Booth aebe23f611
⬆ Use C# 8.0 and target x64 2019-11-16 01:42:40 +00:00
Oliver Booth 0c79885796
🎨 Fix table markdown in README.md 2019-07-07 12:27:55 +01:00
Oliver Booth 1a8e1c8eaf
🎉 Initial commit 2019-07-07 12:23:48 +01:00