public override int GetHashCode() { #if (NET462 || NET471) return(PartId.GetHashCode() ^ (UserId?.GetHashCode() ?? 0)); #else return(HashCode.Combine(PartId, UserId)); #endif }
public void CodeBlocks(PartId owner, Receiver <ApiCodeBlock> dst) { var files = PartFiles(owner).View; var count = files.Length; for (var i = 0; i < count; i++) { ref readonly var file = ref skip(files, i);
public override int GetHashCode() { var hashCode = 1296822809; hashCode = hashCode * -1521134295 + EmailTemplateId.GetHashCode(); hashCode = hashCode * -1521134295 + PartId.GetHashCode(); return(hashCode); }
public override int GetHashCode() { var hashCode = 1230688051; hashCode = hashCode * -1521134295 + EmailId.GetHashCode(); hashCode = hashCode * -1521134295 + PartId.GetHashCode(); return(hashCode); }
/// <summary> /// Enumerates the content of archived files owned by a specified part /// </summary> public IEnumerable <ApiCodeBlock> PartBlocks(PartId part) { foreach (var file in PartFiles(part)) { foreach (var item in Read(file)) { if (item.IsNonEmpty) { yield return(item); } } } }
override public string ToString() { string result = PartId.ToString() + TokenSeparator + Position.ToString() + TokenSeparator + Length.ToString() + TokenSeparator + IsCompleted.ToString() + TokenSeparator; if (PartETag != null) { result += PartETag.PartNumber.ToString() + TokenSeparator + PartETag.ETag; } else { result += TokenSeparator; } return(result); }
/// <summary> /// Enumerates the archived files owned by a specified part /// </summary> public FS.Files PartFiles(PartId owner) => Root.Files(owner, Ext, true);
public FS.FolderPath AsmSourceDir(PartId part) => AsmSourceRoot() + FS.folder(part);
public FS.FolderPath PartDir(PartId part) => Root + FS.folder(part);