File: System\Formats\Nrbf\BinaryType.cs
Web Access
Project: src\src\libraries\System.Formats.Nrbf\src\System.Formats.Nrbf.csproj (System.Formats.Nrbf)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace System.Formats.Nrbf;
 
/// <summary>
/// Identifies the remoting type of a class member or array item.
/// </summary>
/// <remarks>
/// BinaryType enumeration is described in <see href="https://learn.microsoft.com/openspecs/windows_protocols/ms-nrbf/054e5c58-be21-4c86-b1c3-f6d3ce17ec72">[MS-NRBF] 2.1.2.2</see>.
/// </remarks>
internal enum BinaryType : byte
{
    /// <summary>
    /// The type is defined by <see cref="PrimitiveType"/> and it is not a string.
    /// </summary>
    Primitive,
 
    /// <summary>
    /// The type is a <see href="https://learn.microsoft.com/openspecs/windows_protocols/ms-nrbf/10b218f5-9b2b-4947-b4b7-07725a2c8127">
    ///  length prefixed string</see>.
    /// </summary>
    String,
 
    /// <summary>
    /// The type is the <see cref="object"/>.
    /// </summary>
    Object,
 
    /// <summary>
    /// The type is a class or a struct defined in mscorlib.
    /// </summary>
    SystemClass,
 
    /// <summary>
    /// The type is a class or a struct.
    /// </summary>
    Class,
 
    /// <summary>
    /// The type is a single-dimensional array of objects.
    /// </summary>
    ObjectArray,
 
    /// <summary>
    /// The type is a single-dimensional array of strings.
    /// </summary>
    StringArray,
 
    /// <summary>
    /// The type is a single-dimensional array of a primitive type.
    /// </summary>
    PrimitiveArray
}