logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.Shared.Utils

    Classes

    DisplayValue

    FileUtils

    Utility class for file operations

    NamingSanitizer

    Single source of truth for the file-name and C#-identifier sanitization rules the editor asset creators (GameSettingCreator, FeedbackCreator, CutsceneCreator, ModalCreator, ThemeCreator, AudioChannelCreator, and the audio/music batch importers) each duplicated near-identically. Engine-agnostic (pure string logic over GetInvalidFileNameChars()), so it lives in Shared rather than any one Business or Unity module.

    NumberUtils

    Utility class for number operations

    ObjectUtils

    Utility class for object operations

    ParseUtils

    Utility class for parsing operations

    ParseUtils.Bool

    Utility class for parsing boolean values

    ParseUtils.Bool.BoolStrings

    Utility class for converting boolean values to various string representations

    ParseUtils.Bool.BoolStrings.Active

    Utility class for converting boolean values to various string representations

    ParseUtils.Bool.BoolStrings.Bool

    Utility class for converting boolean values to various string representations

    ParseUtils.Bool.BoolStrings.Interaction

    Utility class for converting boolean values to various string representations

    ParseUtils.Bool.BoolStrings.Response

    Utility class for converting boolean values to various string representations

    ParseUtils.Bool.BoolStrings.Switch

    Utility class for converting boolean values to various string representations

    ParseUtils.Float

    Utility class for parsing float values

    ParseUtils.Int

    Utility class for parsing integer values

    ParseUtils.Type

    ReflectionActivationUtils

    Reflection helpers for resolving a Type by name and converting a raw string into an argument of an arbitrary target type. Mirrors the private matching semantics of Serenity.Tasking.Application.Tasks.ReflectionCallTask (the source of truth: an exact FullName match, then a short-name match only when it uniquely identifies a single loaded type) so every reflection-based activation site in Serenity behaves identically for a given type name. Kept as a standalone copy rather than having ReflectionCallTask delegate here, to avoid changing the behavior of that existing boot-pipeline task outside dedicated test coverage.

    SafeCollectionUtils

    Utility class for safe array and collection operations

    StringUtils

    Utility class for common string operations and formatting

    Enums

    ParseUtils.Bool.BoolStringsTypes

    Enumeration of the different types of boolean string representations

    In this article
    © 2026 Serenity. All Rights Reserved