Search Results for

    Show / Hide Table of Contents

    Class Gender

    Represents the gender/sex field as defined in the ICAO MRZ standard.

    Inheritance
    System.Object
    Gender
    Namespace: IronOcr
    Assembly: IronOcr.dll
    Syntax
    public sealed class Gender : Enum

    Read the sex field of a scanned passport in C# through Gender, which mirrors the value coded in the ICAO machine-readable zone. Male corresponds to M in the MRZ and Female to F. Unspecified covers X or <, used when the document leaves the field open or marks it non-binary. The value surfaces on a passport result after a passport read, so a project can store or branch on it without parsing the raw MRZ. The read passport how-to extracts MRZ fields end to end.

    Fields

    Female

    Female ('F' in MRZ).

    Declaration
    public const Gender Female
    Field Value
    Type Description
    Gender

    Male

    Male ('M' in MRZ).

    Declaration
    public const Gender Male
    Field Value
    Type Description
    Gender

    Unspecified

    Unspecified ('X' or '<' in MRZ, used when gender is not specified or non-binary).

    Declaration
    public const Gender Unspecified
    Field Value
    Type Description
    Gender

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget