Commit Graph

1219 Commits

Author SHA1 Message Date
Oliver Booth d6e8471239
Lazily enumerate source enumerable
Don't consume with ToArray() before iterating and yielding results back. This decreases allocations
2021-07-20 17:15:10 +01:00
Oliver Booth 35a9b31be7
(#14) Import System to avoid Random FQN 2021-07-20 17:12:28 +01:00
Oliver Booth 9a26031245
(#15) Document possible ArgumentOutOfRangeException 2021-07-20 17:01:30 +01:00
Oliver Booth 78830a3b9e
Move Lerp implementation to MathUtils class
float/double/short/int/long methods call MathUtils class
2021-07-20 16:56:56 +01:00
Oliver Booth ac203dda1f
(#14) Perform solution-wide code cleanup 2021-07-20 16:46:51 +01:00
Oliver Booth b81cac03d6
Add CultureInfo argument to exception message format 2021-07-20 16:24:16 +01:00
Oliver Booth 1205290ab4
Fix typos in IsPrimeTests xmldoc 2021-07-20 14:51:09 +01:00
Oliver Booth 09e126fa08
Add IsPrime tests 2021-07-20 14:47:33 +01:00
Oliver Booth f0e3b65604
Delegate (s)byte.IsPrime to short.isPrime 2021-07-20 14:26:23 +01:00
Oliver Booth f20aa3dbd4
(#41) Ignore directories as namespace providers 2021-07-20 14:01:33 +01:00
Oliver Booth 25a40521c8
(#42) Short circuit char.Repeat count 0 and 1 2021-07-20 01:02:02 +01:00
Oliver Booth 132573e262
Update byte unit tests to reflect new API 2021-07-20 00:53:43 +01:00
Oliver Booth 7192b46e9f
(#15) Format xmldoc for byte extensions 2021-07-20 00:51:27 +01:00
Oliver Booth 6722c0185e
Delegate byte prime check to int 2021-07-20 00:50:10 +01:00
Oliver Booth 1cc2300e83
Update BooleanTests to reflect new API 2021-07-19 12:53:49 +01:00
Oliver Booth 6f5ec657e8
(#31) Add SonarCloud code coverage 2021-07-19 12:52:20 +01:00
Oliver Booth 6e6d6c48fb
(#14) Declare using directives outside of namespace 2021-07-19 12:48:58 +01:00
Oliver Booth 0197d89e48
(#14) (#15) Code cleanup on bool xmldoc 2021-07-19 12:45:54 +01:00
Oliver Booth 8059b067c9
Remove BetterBehavior and GameTime types 2021-07-19 12:39:07 +01:00
Oliver Booth 6e4a9882e9
(#32) Add (short/int/long).To(Host/Network)Order
Implementation calls IPAddress.(Host/Network)To(Network/Host)Order
2021-07-19 11:46:38 +01:00
Oliver Booth 61c122c9ea
(#42) Throw exceptions on invalid string arguments 2021-07-19 11:39:08 +01:00
Oliver Booth 92d60a6db8
(#42) Use NRT for AddNullIf__ 2021-07-19 11:38:24 +01:00
Oliver Booth 14b43adf82
(#27) Add "count must be >= 0" message 2021-07-19 11:35:23 +01:00
Oliver Booth 55dc20b79d
(#14) Format csproj 2021-07-19 11:34:37 +01:00
Oliver Booth c91067a9ba (#15) Add xmldoc to Endianness enum fields 2021-06-27 13:19:55 +01:00
Oliver Booth e2e7b3a947 (#42) Validate not-null values 2021-06-27 13:15:21 +01:00
Oliver Booth d6f4a96257 (#42) Validate lower <= upper 2021-06-27 13:14:42 +01:00
Oliver Booth 370f2d96f4 (#42) Validate not-null value 2021-06-27 13:14:11 +01:00
Oliver Booth e3d38a633d (#42) Validate count >=0 2021-06-27 13:11:03 +01:00
Oliver Booth e8ef1cd028 Return Task<bool> for WaitHandle.WaitOneAsync 2021-06-27 13:08:58 +01:00
Oliver Booth 4828300076 (#42) Validate not-null handle 2021-06-27 13:06:17 +01:00
Oliver Booth 49ed44100d (#41) Remove child namespaces 2021-06-27 12:31:04 +01:00
Oliver Booth 1443d7d4cf Update X10D.Unity to 2020.3.12.f1 LTS 2021-06-27 12:20:51 +01:00
Oliver Booth 188d662452 Update Tests project to .NET 5 2021-06-27 12:19:51 +01:00
Oliver Booth f5729ffcb3
Add SonarCloud analysis 2021-04-27 01:41:32 +01:00
Oliver Booth 9d3f2b263f (#15) Rewrite summary for IComparable.Between 2021-04-06 11:06:43 +01:00
Oliver Booth c6f550d5a7 (#27) Move bounds exception to resource 2021-04-02 12:40:55 +01:00
Oliver Booth b36638d4df (#15) Unsigned are in signed namespace 2021-04-02 12:14:33 +01:00
Oliver Booth 6e0255f6cf Use explicit narrowing conversion 2021-04-02 12:11:01 +01:00
Oliver Booth 9e193e7142 Add ByteExtensions and SByteExtensions 2021-04-01 13:34:30 +01:00
Oliver Booth a8de6e1755 Refactor TimeSpanParse.Parse to .TryParse
Exception will no longer be thrown
2021-04-01 10:32:33 +01:00
Oliver Booth 27a370cffe Add float/double.ToBoolean 2021-03-16 15:02:41 +00:00
Oliver Booth 1ee7e59f91 (#38) Add short/int/long.Lerp 2021-03-16 14:46:49 +00:00
Oliver Booth c3cb8ba261 (#14) Enforce 130-char line length 2021-03-16 14:42:33 +00:00
Oliver Booth 4571697589 (#15) (#39) Match unsigned impl with signed 2021-03-12 13:24:30 +00:00
Oliver Booth cb40ecb22c (#15) Add usage example for bool.GetBytes 2021-03-12 13:19:52 +00:00
Oliver Booth 84706fe54b (#15) Add seealso in xmldoc 2021-03-12 13:19:31 +00:00
Oliver Booth 9b79d216f8 (#15) One-line WriteLine arguments for example 2021-03-12 12:04:51 +00:00
Oliver Booth 5dab9323b6 (#39) Use inline ternary instead of cast 2021-03-12 12:03:30 +00:00
Oliver Booth ef78f86b3a (#15) Add spacing between text and code for example 2021-03-12 12:02:26 +00:00