Skip to content

Commit

Permalink
refactor: use typeof
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranayub committed Jun 12, 2024
1 parent 6be2c25 commit a17ecd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IGDB/Serialization/IdentityConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ public override void WriteJson(JsonWriter writer, object value, JsonSerializer s
}

public static bool IsIdentityOrValue(Type givenType) {
return givenType.Name.Contains("IdentityOrValue`");
return givenType.Name.Contains(typeof(IdentityOrValue<>).Name);
}

public static bool IsIdentitiesOrValues(Type givenType) {
return givenType.Name.Contains("IdentitiesOrValues`");
return givenType.Name.Contains(typeof(IdentitiesOrValues<>).Name);
}
}

Expand Down

0 comments on commit a17ecd5

Please sign in to comment.