Cost Property Cost Gets the cost in bytes of the entry. Declaration long Cost { get; } Property Value long The cost in bytes, if statistics are enabled; otherwise -1.