Ejemplo n.º 1
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (FileName.Length != 0)
        {
            hash ^= FileName.GetHashCode();
        }
        if (StarPos != 0L)
        {
            hash ^= StarPos.GetHashCode();
        }
        if (Bytes.Length != 0)
        {
            hash ^= Bytes.GetHashCode();
        }
        if (SendLength != 0)
        {
            hash ^= SendLength.GetHashCode();
        }
        if (FileType.Length != 0)
        {
            hash ^= FileType.GetHashCode();
        }
        if (FileSize != 0L)
        {
            hash ^= FileSize.GetHashCode();
        }
        if (FilePath.Length != 0)
        {
            hash ^= FilePath.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Ejemplo n.º 2
0
 private string GetStarPos(StarPos starPos)
 {
     return(String.Format("{0}/{1}/{2}", starPos.X, starPos.Y, starPos.Z));
 }
Ejemplo n.º 3
0
 private string GetCombinedStarPos(StarPos starPos)
 {
     return($"({GetStarPos(starPos)})");
 }