Grist4NET
Search Results for

    Show / Hide Table of Contents

    Class GristChoiceConverter<TEnum>

    Translates Grist choice options to Enums

    Inheritance
    object
    GristChoiceConverter<TEnum>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Grist4NET
    Assembly: Grist4NET.dll
    Syntax
    public static class GristChoiceConverter<TEnum> where TEnum : struct, Enum
    Type Parameters
    Name Description
    TEnum

    Enum type

    Methods

    GetEnum(string)

    Declaration
    public static TEnum GetEnum(string choice)
    Parameters
    Type Name Description
    string choice
    Returns
    Type Description
    TEnum

    HasEnum(string)

    Declaration
    public static bool HasEnum(string choice)
    Parameters
    Type Name Description
    string choice
    Returns
    Type Description
    bool

    TryGetEnum(string, out TEnum)

    Declaration
    public static bool TryGetEnum(string choice, out TEnum value)
    Parameters
    Type Name Description
    string choice
    TEnum value
    Returns
    Type Description
    bool

    See Also

    GristChoiceAttribute
    EnumMemberAttribute
    In this article
    Back to top Generated by DocFX