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