Info
Version: | 0.0.1602.2603 |
Author(s): | THTP |
Last Update: | Friday, February 26, 2016 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/thtp/CommonTools |
NuGet Url: | https://www.nuget.org/packages/CommonTools |
Install
Install-Package CommonTools
dotnet add package CommonTools
paket add CommonTools
CommonTools Download (Unzip the "nupkg" after downloading)
Dependencies
- JetBrains.Annotations(>= 10.0.0)
Tags
- With
- Return
- If
- Unless
- Do
- As<>
- AsNullable<>
- Cast<>
- SilentCast<>
- TryWith
- TryReturn
- TryDo
-Throw
Check argument and throw exception
- ShouldnotBeNull
- ShouldHaveValue (for T?)
- ShouldBeInRange
- ShouldnotBeInRange
- ShouldBeAtLeast
- ShouldBeAtMost
- ShouldSatisfyCondition
Enumerable extensions
- ForEach
- In
- Iterate
String extensions
- IsNullOrEmpty
- IsNullOrWhitespace
- FillFormat
- JoinToString
- JoinNotEmptyToString
- JoinNotBlankToString
- ConcatToString
- Parse<T>
Enum extensions
- GetAttribute<T>
- GetAttributes<T>
- GetDescription
- GetDescriptionOrValue
Reflection extensions
- GetUnderlyingType
- GetMemberValueExpression
Expression visitors:
- GetMembersExpressionVisitor
- GetParametersExpressionVisitor
- UpdateMembersExpressionVisitor
- UpdateParametersExpressionVisitor
Expression extensions:
- AndAlso
- OrElse
- GetParameters
- UpdateParameter
- GetMembers
- GetMemberExpressions
- GetLeafMembers
- GetLeafMemberExpressions
- UpdateMembers
Multithreading
- ReadLock
- WriteLock
- UpgradeableLock
- ReaderWriterLockAsync
ReaderWriterLockSlim extensions
- UseReadLock
- UseWriteLock
- UseUpgradeableLock.