AsmResolver.Net.Signatures.ArrayMarshalDescriptor.Write C# (CSharp) Method

Write() public method

public Write ( WritingContext context ) : void
context WritingContext
return void
        public override void Write(WritingContext context)
        {
            var writer = context.Writer;
            writer.WriteByte((byte)NativeType);
            writer.WriteByte((byte)ElementType);
            if (ParameterIndex.HasValue)
            {
                writer.WriteCompressedUInt32((uint)ParameterIndex.Value);
                if (NumberOfElements.HasValue)
                    writer.WriteCompressedUInt32((uint)NumberOfElements.Value);
            }
        }