FileInfo fi = ...; // fi could be null long? length = fi?.Length; // If fi is null, length will be null