logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SteamAnswerText

    The words a failure message uses for what Steam answered with, so an answer that said nothing reads as "the answer was empty" instead of a sentence that stops after its colon.

    Inheritance
    object
    SteamAnswerText
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Steam.Infrastructure
    Assembly: Serenity.Steam.Infrastructure.dll
    Syntax
    public static class SteamAnswerText

    Fields

    EmptyAnswerText

    What a failure message says when Steam's answer had no body.

    Declaration
    public const string EmptyAnswerText = "the answer was empty"
    Field Value
    Type Description
    string

    Methods

    Describe(string, int)

    The body of an answer, shortened to maxLength, or EmptyAnswerText when it has none.

    Declaration
    public static string Describe(string body, int maxLength)
    Parameters
    Type Name Description
    string body

    The answer's body. May be null.

    int maxLength

    The most characters of the body to keep.

    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved