src/Orleans.Serialization/GeneratedCodeHelpers/OrleansGeneratedCodeHelper.cs
/// <summary>
/// Reads the header expecting an end base tag or end object tag.
/// </summary>
/// <typeparam name="TInput">The reader input type.</typeparam>
/// <param name="reader">The reader.</param>
/// <param name="header">The header.</param>
/// <param name="id">The identifier.</param>
/// <returns>The field id, if a new field header was written, otherwise <c>-1</c>.</returns>
Reads the header expecting an end base tag or end object tag.
Reads the header expecting an end base tag or end object tag .
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        public static int ReadHeaderExpectingEndBaseOrEndObject<TInput>(ref Reader<TInput> reader, ref Field header, int id)
        {
            reader.ReadFieldHeader(ref header);
            if (header.IsEndBaseOrEndObject)
            {
                return -1;
            }
            return (int)(id + header.FieldIdDelta);
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] public static int ReadHeaderExpectingEndBaseOrEndObject < TInput > ( ref Reader < TInput > reader , ref Field header , int id ) { reader . ReadFieldHeader ( ref header ) ; if ( header . IsEndBaseOrEndObject ) { return - 1 ; } return ( int ) ( id + header . FieldIdDelta ) ; }
Reads the header expecting an end base tag or end object tag.
Reads the header expecting an end base tag or end object tag .
The field id, if a new field header was written, otherwise -1
The field id if a new field header was written otherwise - 1
Reader<TInput>
ref
Field
ref
id
int
None
reader
None
header
None
typeparam
The reader input type.
The reader input type .