Commit Graph

1217 Commits

Author SHA1 Message Date
Oliver Booth 2c898e5e3d
🐞 Fix version link in CHANGELOG.md 2020-04-21 04:42:06 +01:00
Oliver Booth e3deb0f22b
📚 Update version in CHANGELOG.md 2020-04-21 04:23:44 +01:00
Oliver Booth 4b6d3a38b3
📚 Update NuGet version in README.md 2020-04-21 04:20:33 +01:00
Oliver Booth b1b1309274
🏷 Bump to 2.2.0 2020-04-21 04:17:53 +01:00
Oliver Booth cf317d30a8
📚 Update CHANGELOG.md 2020-04-21 04:17:28 +01:00
Oliver Booth a591b91c6c
Add ReflectionTests 2020-04-21 04:17:19 +01:00
Oliver Booth 1ccb8b2457
Add ReflectionExtensions
- `GetDefaultValue` and `GetDefaultValue<T>` - gets the value stored in
the member's `DefaultValue` attribute
- `GetDescription`- gets the value stored in the member's `Description`
attribute
- `SelectFromCustomAttribute<T1, T2>` - Internally calls
`GetCustomAttribute<T1>` and passes it to a `Func<T1, T2>` so that
specific members may be selected
2020-04-21 04:16:46 +01:00
Oliver Booth 36d3014573
⚠ Treat warnings as errors 2020-04-21 03:45:02 +01:00
Oliver Booth b19a672411
🔨 Suppress IDE0008 in ruleset 2020-04-21 03:38:36 +01:00
Oliver Booth 11ffa43810
Add string.IsUpper and string.IsLower
- IsLower:
Determines if all alpha characters in this string are considered
lowercase.

- IsUpper:
Determines if all alpha characters in this string are considered
uppercase.
2020-04-20 14:17:55 +01:00
Oliver Booth 72f9474e1c
🎖 Credit original author of string.EnumParse 2020-04-20 14:13:57 +01:00
Oliver Booth 5c447f1b02
Add string.ChangeEncoding
Converts this string from one encoding to another, by using the
previously defined .GetBytes and .GetString as intermediary methods
2020-04-20 14:01:48 +01:00
Oliver Booth 27e82bada1
📚 Add CHANGELOG.md 2020-04-20 14:00:20 +01:00
Oliver Booth 03698786fc
📚 Add "Contributing" to README ToC 2020-04-19 16:31:41 +01:00
Oliver Booth 4165e4e8b9
📚 Add CONTRIBUTING.md 2020-04-19 16:29:31 +01:00
Oliver Booth 430eadee57
Add tests for StringExtensions 2020-04-19 16:16:28 +01:00
Oliver Booth 30e53b2cec
🔀 Merge branch master 2020-04-19 15:11:22 +01:00
Oliver Booth d1e32e93d1 🐞 Add assignee and label to request template 2020-04-19 15:10:29 +01:00
Oliver Booth f5fdf8daf3
🔀 Merge branch master 2020-04-19 14:59:38 +01:00
Oliver Booth 3a615124ce 🐞 Add issue templates 2020-04-19 14:58:25 +01:00
Oliver Booth 4df2543181
Add Roslynator.Analyzers 2020-04-19 14:31:29 +01:00
Oliver Booth 5821094569
🏷 Bump to 2.1.1-alpha 2020-04-19 14:18:46 +01:00
Oliver Booth 31850220cc
🛠 Resolve RCS1277 violation 2020-04-19 14:17:33 +01:00
Oliver Booth 4c30c8228b
📕 Document return values in DateTimeExtensions 2020-04-19 14:14:59 +01:00
Oliver Booth 2dab2f30bb
🖼 Move string literals to project resource file 2020-04-19 14:14:29 +01:00
Oliver Booth 5034e1ceb4
👍 CLSCompliant assemblies 2020-04-19 14:13:46 +01:00
Oliver Booth 1780ae3a40
📕 Add XMLDoc to TimeSpanParserTests 2020-04-19 14:11:28 +01:00
Oliver Booth b1a69a7711
🔨 Add code analysis ruleset 2020-04-19 14:10:42 +01:00
Oliver Booth 754486c568
📚 Update NuGet package version in README.md 2020-04-18 23:49:37 +01:00
Oliver Booth f145756632
🏷 Bump to 2.1.0 2020-04-18 23:39:41 +01:00
Oliver Booth bf779bafec
Add ToInt16 and ToInt64 in BooleanTests 2020-04-18 23:39:04 +01:00
Oliver Booth 66d68b01bf
Add ToInt16 and ToInt64 in BooleanExtensions 2020-04-18 23:38:33 +01:00
Oliver Booth 6be765a92d
🔨 Cast result instead of literals ToByte() 2020-04-18 23:30:09 +01:00
Oliver Booth e7bf572d09
🚨 Minor refactor in BooleanTests.cs
* const bool in Not()
* rename Xor() to XOr()
* conform XNOr() documentation
2020-04-18 23:14:48 +01:00
Oliver Booth 4461272f59
📕 Reword XML-doc in BooleanExtensions.cs 2020-04-18 23:13:30 +01:00
Oliver Booth be5f450dbf
🎨 Ensure line length does not exceed 120 chars 2020-04-18 23:07:05 +01:00
Oliver Booth 1bee1952f9
🎨 Alphabetize method definitions 2020-04-18 23:05:57 +01:00
Timathy a0de8ceb11
Add logical operations in BooleanExtensions
Methods include:
* And
* Or
* Not
* XOr
* NAnd
* NOr
* XNOr
2020-04-18 22:50:26 +01:00
Oliver Booth 7e0de45b64
🚨 Fix ByteTests.GetString
Use unicode codepoint instead of raw literal
2020-04-18 17:43:51 +01:00
Oliver Booth c7aeee1572
📚 Update README.md
* Add preliminary documentation of most extension methods
* Include table of contents
* Add shields.io badges
2020-04-18 17:36:37 +01:00
Oliver Booth f117090a80
👷‍♂️ Add GitHub CI 2020-04-18 14:48:32 +01:00
Oliver Booth 9c061eacf1
🔥 Remove Drawing, WinForms and Unity projects 2020-04-18 14:46:05 +01:00
Oliver Booth f200765280
🔨 Warn about RCS1177 2020-04-18 14:44:56 +01:00
Oliver Booth c11a4cccce
🏷 Bump to v2.0.0 2020-04-18 14:44:10 +01:00
Oliver Booth c7aff94982
🎯 Target .NET Standard 2.1 2020-04-18 14:43:42 +01:00
Oliver Booth 5015aeb35b
🎨 Fix XML indentation 2020-04-18 14:43:16 +01:00
Oliver Booth 5dee02ba79
Add FxCop and StyleCop analyzers 2020-04-18 14:42:47 +01:00
Oliver Booth 686b915be8
Add MSTests project 2020-04-18 14:41:53 +01:00
Oliver Booth 90f0e7efd4
🎨 Ensure codebase is StyleCop & FxCop compliant 2020-04-18 14:38:27 +01:00
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