public long GetDataLength() { var total = 0L; if (this.File != null) { total += this.File.Length; } if (this.Inline != null) { total += this.Inline.Length; } if (this.AddOnceToken != null) { total += this.AddOnceToken.Length; } return total; } }