1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-25 12:58:46 +00:00
Commit Graph

1228 Commits

Author SHA1 Message Date
a67fd274fa
🐞 Fix bug ensuring timestamp is UTC 2019-11-16 20:18:19 +00:00
10fea0b372
🔨 Use DateTimeOffset to convert Unix timestamps 2019-11-16 20:16:47 +00:00
0344851c32
⬆ Build against .NET Standard 2.0 2019-11-16 20:11:06 +00:00
e9f0a94cad
🔥 Remove Days() from IComparable 2019-11-16 11:18:19 +00:00
c3d1b035c0
📚 Use consistent XML doc wording across classes 2019-11-16 11:17:31 +00:00
bb2dedccad
📚 Add XML doc to StructExtensions 2019-11-16 11:15:21 +00:00
d1d89de250
Add IList<T> overloads for Shuffle<T>() 2019-11-16 11:11:03 +00:00
3b0c304f54
🔨 Call Array.Empty<T>() in Stream.GetHash<T>() 2019-11-16 11:09:04 +00:00
a14de1fa96
🔨 Rename unused lambda parameter in Shuffle() 2019-11-16 11:07:53 +00:00
2df13450a0
🔨 Call overloads to reduce code duplication 2019-11-16 11:04:02 +00:00
ae4f7f7b38
🔨 Call OneOf() overload to reduce duplication 2019-11-16 11:02:20 +00:00
8c39914547
Add Random.CoinToss()
CoinToss() returns true if the next random number == 2, false otherwise
2019-11-16 11:01:00 +00:00
5da34dd762
Add month-based DateTime returns for Int32 2019-11-16 11:00:02 +00:00
120ea9562e
Add ListExtensions.Shuffle<T>()
Shuffle<T>() returns the source enumerable ordered randomly
2019-11-16 02:12:15 +00:00
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
1712dbaa02
💄 Fix spacing between methods 2019-11-16 02:06:25 +00:00
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
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
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
a01ef63ab0
💄Reformat files 2019-11-16 01:57:59 +00:00
e537b9c727
Add ToBoolean()
ToBoolean() returns false if value is 0, true otherwise
2019-11-16 01:53:16 +00:00
445929e1b8
Add BooleanExtensions
ToInt32() returns 1 if value is true, 0 otherwise
2019-11-16 01:51:06 +00:00
cae360edc3
Add Clamp() for integral types 2019-11-16 01:50:12 +00:00
44b6773cc8
🔥 Remove redundant else in ToSecureString 2019-11-16 01:47:39 +00:00
7c42f0632f
🔨 Add parameter to disambiguate ToString
Caller may want base SecureString.ToString()
2019-11-16 01:46:46 +00:00
aebe23f611
⬆ Use C# 8.0 and target x64 2019-11-16 01:42:40 +00:00
0c79885796
🎨 Fix table markdown in README.md 2019-07-07 12:27:55 +01:00
1a8e1c8eaf
🎉 Initial commit 2019-07-07 12:23:48 +01:00