dotnet format

This commit is contained in:
Mike Phares 2023-06-28 18:42:37 -07:00
parent 34a02fd8bd
commit 5996ec2a5a
18 changed files with 23 additions and 23 deletions

View File

@ -203,4 +203,4 @@ public class CopyDistinct
return results; return results;
} }
} }

View File

@ -73,9 +73,9 @@ public readonly struct Point : IEquatable<Point>
/// Returns the hash code for this <see cref="Point"/>. /// Returns the hash code for this <see cref="Point"/>.
/// </summary> /// </summary>
/// <returns>The hash code for this <see cref="Point"/> structure.</returns> /// <returns>The hash code for this <see cref="Point"/> structure.</returns>
#pragma warning disable IDE0070 #pragma warning disable IDE0070
public override int GetHashCode() public override int GetHashCode()
#pragma warning restore IDE0070 #pragma warning restore IDE0070
{ {
int hashCode = 1861411795; int hashCode = 1861411795;
hashCode = hashCode * -1521134295 + X.GetHashCode(); hashCode = hashCode * -1521134295 + X.GetHashCode();

View File

@ -517,4 +517,4 @@ public class A_Property
return result; return result;
} }
} }

View File

@ -621,4 +621,4 @@ public class Rename
RenameByDateTakenB(matchNginxCollection, aPropertySingletonDirectory, jsonFiles); RenameByDateTakenB(matchNginxCollection, aPropertySingletonDirectory, jsonFiles);
} }
} }

View File

@ -37,9 +37,9 @@ public class FacePoint : Properties.IFacePoint
return result; return result;
} }
#pragma warning disable IDE0070 #pragma warning disable IDE0070
public override int GetHashCode() public override int GetHashCode()
#pragma warning restore IDE0070 #pragma warning restore IDE0070
{ {
int hashCode = 1861411795; int hashCode = 1861411795;
hashCode = hashCode * -1521134295 + _Point.GetHashCode(); hashCode = hashCode * -1521134295 + _Point.GetHashCode();

View File

@ -74,9 +74,9 @@ public class Location : Properties.ILocation, IEquatable<Location>
return result; return result;
} }
#pragma warning disable IDE0070 #pragma warning disable IDE0070
public override int GetHashCode() public override int GetHashCode()
#pragma warning restore IDE0070 #pragma warning restore IDE0070
{ {
int hashCode = -773114317; int hashCode = -773114317;
hashCode = hashCode * -1521134295 + Bottom.GetHashCode(); hashCode = hashCode * -1521134295 + Bottom.GetHashCode();

View File

@ -26,4 +26,4 @@ public class MappingFromFilter : Properties.IMappingFromFilter
return result; return result;
} }
} }

View File

@ -55,4 +55,4 @@ public class MappingFromItem : Properties.IMappingFromItem
return result; return result;
} }
} }

View File

@ -30,4 +30,4 @@ public class MappingFromLocation : Properties.IMappingFromLocation
return result; return result;
} }
} }

View File

@ -26,4 +26,4 @@ public class MappingFromPerson : Properties.IMappingFromPerson
return result; return result;
} }
} }

View File

@ -15,4 +15,4 @@ public class MappingFromPhotoPrism : Properties.IMappingFromPhotoPrism
Markers = markers; Markers = markers;
} }
} }

View File

@ -8,4 +8,4 @@ public interface IMappingFromFilter
public bool? IsIgnoreRelativePath { init; get; } public bool? IsIgnoreRelativePath { init; get; }
public bool? InSkipCollection { init; get; } public bool? InSkipCollection { init; get; }
} }

View File

@ -14,4 +14,4 @@ public interface IMappingFromItem
public string RelativePath { init; get; } public string RelativePath { init; get; }
public FileHolder ResizedFileHolder { init; get; } public FileHolder ResizedFileHolder { init; get; }
} }

View File

@ -10,4 +10,4 @@ public interface IMappingFromLocation
public bool? EyeReview { init; get; } public bool? EyeReview { init; get; }
public int WholePercentages { init; get; } public int WholePercentages { init; get; }
} }

View File

@ -8,4 +8,4 @@ public interface IMappingFromPerson
public PersonBirthday PersonBirthday { init; get; } public PersonBirthday PersonBirthday { init; get; }
public string SegmentB { init; get; } public string SegmentB { init; get; }
} }

View File

@ -6,4 +6,4 @@ public interface IMappingFromPhotoPrism
public DatabaseFile DatabaseFile { init; get; } public DatabaseFile DatabaseFile { init; get; }
public List<Marker> Markers { init; get; } public List<Marker> Markers { init; get; }
} }

View File

@ -130,11 +130,11 @@ internal abstract class Face
return (review, result); return (review, result);
} }
internal static (bool, int[]) GetEyeCollection(int threshold, List<Shared.Models.Face> faces) internal static (bool, int[]) GetEyeCollection(int threshold, List<Models.Face> faces)
{ {
bool result = false; bool result = false;
List<int> results = new(); List<int> results = new();
foreach (Shared.Models.Face face in faces) foreach (Models.Face face in faces)
{ {
if (face.Mapping?.MappingFromLocation?.Eyeα is null || face.Mapping.MappingFromLocation.EyeReview is null) if (face.Mapping?.MappingFromLocation?.Eyeα is null || face.Mapping.MappingFromLocation.EyeReview is null)
continue; continue;

View File

@ -28,9 +28,9 @@ public interface IFace
static (bool?, double?) GetEyeα(Dictionary<FacePart, Models.FacePoint[]> faceParts) => static (bool?, double?) GetEyeα(Dictionary<FacePart, Models.FacePoint[]> faceParts) =>
Face.GetEyeα(faceParts); Face.GetEyeα(faceParts);
(bool, int[]) TestStatic_GetEyeCollection(int threshold, List<Shared.Models.Face> faces) => (bool, int[]) TestStatic_GetEyeCollection(int threshold, List<Models.Face> faces) =>
GetEyeCollection(threshold, faces); GetEyeCollection(threshold, faces);
static (bool, int[]) GetEyeCollection(int threshold, List<Shared.Models.Face> faces) => static (bool, int[]) GetEyeCollection(int threshold, List<Models.Face> faces) =>
Face.GetEyeCollection(threshold, faces); Face.GetEyeCollection(threshold, faces);
} }