Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
C# Extension Method: Array - ByteLength by ZZZ Projects
This example of the Array.ByteLength() nmethod generates the following output.

Array name          Array type   Length  ByteLength
----------          ----------   ------  ----------
     bytes       System.Byte[]       10          10
     bools    System.Boolean[]        5           5
     chars       System.Char[]        5          10
    shorts      System.Int16[]        6          12
   singles     System.Single[]        5          20
   doubles     System.Double[]        4          32
     longs      System.Int64[]        6          48
Cached Result
Last Run: 3:25:36 pm
Compile: 0.251s
Execute: 0.031s
Memory: 417.16kb
CPU: 0.109s