CommunityToolkit.Diagnostics Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Classes
| Guard |
Helper methods to verify conditions when running code. |
| ThrowHelper |
Helper methods to efficiently throw exceptions. |
| TypeExtensions |
Helpers for working with types. |
| ValueTypeExtensions |
Helpers for working with value types. |
Structs
| Guard.IsFalseInterpolatedStringHandler |
Provides an interpolated string handler for IsFalse(Boolean, String, Guard+IsFalseInterpolatedStringHandler) that only performs formatting if the assert fails. |
| Guard.IsTrueInterpolatedStringHandler |
Provides an interpolated string handler for IsTrue(Boolean, String, Guard+IsTrueInterpolatedStringHandler) that only performs formatting if the assert fails. |