C# array byte[].Length property.
byte[] buffer = new ...
When call int i = buffer.Length; I can see get_Length() in reflector,
What happens? Does it calculate actual length or just takes value (like property) ???
byte[].Length will tell you the total number of elements in the array, so retrieving this property has a complexity of O(1).
get_Length()is just part of how .NET implements the getter on theLengthproperty.