Skip to content

SAIF.NetCore.Common API reference

This page lists all public types exposed by SAIF.NetCore.Common. Each type links to its full API reference page.

Types

Type Kind Namespace Purpose
BooleanExtensions Class SAIF.NetCore.Common.Extensions Provide a single, consistent set of boolean-to-text conversions (Y/N, YES/NO, On/Off) so consuming code never hand-rolls its own mapping.
ByteExtensions Class SAIF.NetCore.Common.Extensions Locate a byte or ASCII-text pattern inside a byte array with an optional search-window limit.
ContextException Class SAIF.NetCore.Common.Types Provide a shared TargetView/Model shape for the four concrete context-exception subclasses so consuming MVC applications can catch ContextException once and read a view name regardless of the specific failure.
ContiguousOptions Enum SAIF.NetCore.Common.Enums Offer a ContiguousOptions contract for callers that reference SAIF.NetCore.Common.Enums without also referencing SAIF.NetCore.Common.Extensions.
DateExtensions Class SAIF.NetCore.Common.Extensions Classify a DateTime as the current date, a future date, a past date, or a sentinel MinValue/MaxValue.
DateMaker Class SAIF.NetCore.Common.Helpers Parse an EDI-format date string (with an assumed 2000s century for 2-digit years) and an optional time string into a DateTime.
DateRange Class SAIF.NetCore.Common.Types Represent a begin/end date pair with DateTime.MinValue/MaxValue sentinels for "no date"/open-ended ranges.
DateRangeExtensions Class SAIF.NetCore.Common.Extensions Determine whether a single DateRange is valid, open-ended, in the future, or in the past.
DateRangeExtensions.ContiguousOptions Enum SAIF.NetCore.Common.Extensions Supply the three contiguity policies (StartMatchesEnd, StartIsNextDay, AllowGaps) consumed by DateRangeExtensions.IsContiguous.
DateRangeExtensions.OverlappingOptions Enum SAIF.NetCore.Common.Extensions Supply the two overlap-boundary policies (DatesMayMatch, DatesMayNotMatch) consumed by DateRangeExtensions.IsOverLapping(IEnumerable<DateRange>).
DateRangeOverlapResult Enum SAIF.NetCore.Common.Enums Give NullableDateRange.GetOverlapState a precise vocabulary for describing how range A and range B relate (no overlap, neither range ends, or one of eight compound begin/end relationship patterns).
DictionaryExtensions Class SAIF.NetCore.Common.Extensions Merge two string-keyed dictionaries into one, with a caller-controlled policy for resolving key collisions.
DisabledViewException Class SAIF.NetCore.Common.Types Signal, via a typed exception, that a requested view is currently disabled, optionally carrying a model for the consumer's disabled-view display.
Enforce Class SAIF.NetCore.Common.Helpers Throw ArgumentNullException for a null required argument.
EntityBase Class SAIF.NetCore.Common.Types Reserve a generic base-class slot named EntityBase<TEntity> for a future entity abstraction; currently provides no behavior.*
ExceptionExtensions Class SAIF.NetCore.Common.Extensions Produce a full, multi-exception formatted report of an exception chain for diagnostic logging.
ExpressionExtensions Class SAIF.NetCore.Common.Extensions Resolve the PropertyInfo referenced by a strongly-typed property-access expression.
FileExtensions Class SAIF.NetCore.Common.Extensions Read an entire Stream into a byte[] so callers can pass file or request content into this library's byte-array extension methods.
GenericExtensions Class SAIF.NetCore.Common.Extensions Throw a caller-chosen exception type when a value is null, as a terser alternative to writing an explicit if (value == null) null check followed by a throw statement.
IComparableExtensions Class SAIF.NetCore.Common.Extensions Test whether a value falls between two boundary values, inclusively by default or under a caller-selected IncludeComparisons mode.
IEnumerableExtensions Class SAIF.NetCore.Common.Extensions Iterate a sequence and apply a side-effecting action to each element (ForEach).
IncludeComparisons Enum SAIF.NetCore.Common.Enums Offer an IncludeComparisons contract for callers that reference SAIF.NetCore.Common.Enums without also referencing SAIF.NetCore.Common.Extensions.
IncludeComparisons Enum SAIF.NetCore.Common.Extensions Supply the four inclusive/exclusive boundary-comparison modes (Inclusive, Exclusive, FirstOnly, LastOnly) that IComparableExtensions.IsBetween and DateRangeExtensions.IsInRange/AsOf<T> actually use at runtime.
InvalidContextException Class SAIF.NetCore.Common.Types Signal, via a typed exception, that the consuming application's current context failed validation.
InvalidContextForUserException Class SAIF.NetCore.Common.Types Signal, via a typed exception, that the consuming application's current context is not valid for the current user, distinct from a generally invalid context.
Julian Class SAIF.NetCore.Common.Helpers Validate that a Julian value contains enough digits to be parsed.
LogType Enum SAIF.NetCore.Common.Enums Provide consuming applications a shared enum with six named members (File0–File4, Custom); exact consumer semantics are unknown.**
LongSequence Class SAIF.NetCore.Common.Types Produce a strictly increasing sequence of long values starting from a caller-supplied value.
NoContextException Class SAIF.NetCore.Common.Types Signal, via a typed exception, that the consuming application attempted an operation with no context established.
NullableDateRange Class SAIF.NetCore.Common.Types Represent a date range whose end date may be genuinely absent (null) rather than using the DateRange sentinel convention of DateTime.MaxValue.
NumericExtensions Class SAIF.NetCore.Common.Extensions Detect whether a string represents a 32-bit integer value.
OverlappingDateOptions Enum SAIF.NetCore.Common.Enums Offer an OverlappingDateOptions contract for callers that reference SAIF.NetCore.Common.Enums without also referencing SAIF.NetCore.Common.Extensions.
Reflector Class SAIF.NetCore.Common.Helpers Return the public property metadata for a generic type parameter.
SaifValidationException Class SAIF.NetCore.Common.Types Wrap a ValidationResult (or a single property/error-message pair) in a throwable exception.
SecurityPrincipalExtensions Class SAIF.NetCore.Common.Extensions Extract the user-name segment of a DOMAIN\user identity name.
Sequence Class SAIF.NetCore.Common.Types Produce a strictly increasing sequence of long values starting from a caller-supplied int value.
SequenceGenerator Class SAIF.NetCore.Common.Types Hold the generator's current value and expose it to subclasses via a protected setter.
StringExtensions Class SAIF.NetCore.Common.Extensions Test a string for null, empty, or white-space content without repeating string.IsNullOrEmpty/IsNullOrWhiteSpace call sites.
UriExtensions Class SAIF.NetCore.Common.Extensions Extract the top-level application-name segment from a Uri's path.
ValidationFailure Class SAIF.NetCore.Common.Types Record one validation failure's property name, error message, and the value that failed validation, for later inspection or display.
ValidationResult Class SAIF.NetCore.Common.Types Collect zero or more ValidationFailure entries and informational messages produced by a validation pass.

Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.

Sources

  • src/SAIF.NetCore.Common/SAIF.NetCore.Common/SAIF.NetCore.Common/SAIF.NetCore.Common.csproj