55namespace GraphQL {
66
77 /// <summary>
8- /// <inheritdoc />
8+ /// Represents a GraphQL Error of a GraphQL Query
99 /// </summary>
1010 public class GraphQLError : IEquatable < GraphQLError ? > {
1111
1212 /// <summary>
13- /// <inheritdoc />
13+ /// The extensions of the error
1414 /// </summary>
15- public IDictionary < string , dynamic > ? Extensions { get ; set ; }
15+ public IDictionary < string , dynamic ? > ? Extensions { get ; set ; }
1616
1717 /// <summary>
18- /// <inheritdoc />
18+ /// The locations of the error
1919 /// </summary>
2020 public GraphQLLocation [ ] ? Locations { get ; set ; }
2121
2222 /// <summary>
23- /// <inheritdoc />
23+ /// The message of the error
2424 /// </summary>
2525 public string Message { get ; set ; }
2626
2727 /// <summary>
28- /// <inheritdoc />
28+ /// The Path of the error
2929 /// </summary>
3030 public dynamic [ ] ? Path { get ; set ; }
3131
3232 /// <summary>
33- ///
33+ /// Returns a value that indicates whether this instance is equal to a specified object
3434 /// </summary>
35- /// <param name="obj"></param>
36- /// <returns></returns>
35+ /// <param name="obj">The object to compare with this instance </param>
36+ /// <returns>true if obj is an instance of <see cref="GraphQLError"/> and equals the value of the instance; otherwise, false </returns>
3737 public override bool Equals ( object ? obj ) =>
3838 this . Equals ( obj as GraphQLError ) ;
3939
4040 /// <summary>
41- ///
41+ /// Returns a value that indicates whether this instance is equal to a specified object
4242 /// </summary>
43- /// <param name="other"></param>
44- /// <returns></returns>
43+ /// <param name="other">The object to compare with this instance </param>
44+ /// <returns>true if obj is an instance of <see cref="GraphQLError"/> and equals the value of the instance; otherwise, false </returns>
4545 public bool Equals ( GraphQLError ? other ) {
4646 if ( other == null ) { return false ; }
4747 if ( ReferenceEquals ( this , other ) ) { return true ; }
@@ -65,9 +65,8 @@ public bool Equals(GraphQLError? other) {
6565 }
6666
6767 /// <summary>
68- ///
68+ /// <inheritdoc cref="Object.GetHashCode"/>
6969 /// </summary>
70- /// <returns></returns>
7170 public override int GetHashCode ( ) {
7271 unchecked {
7372 var hashCode = EqualityComparer < IDictionary < string , dynamic > ? > . Default . GetHashCode ( this . Extensions ) ;
@@ -97,20 +96,20 @@ public override int GetHashCode() {
9796 }
9897
9998 /// <summary>
100- ///
99+ /// Tests whether two specified <see cref="GraphQLError"/> instances are equivalent
101100 /// </summary>
102- /// <param name="left"></param>
103- /// <param name="right"></param>
104- /// <returns></returns>
101+ /// <param name="left">The <see cref="GraphQLError"/> instance that is to the left of the equality operator </param>
102+ /// <param name="right">The <see cref="GraphQLError"/> instance that is to the right of the equality operator </param>
103+ /// <returns>true if left and right are equal; otherwise, false </returns>
105104 public static bool operator == ( GraphQLError ? left , GraphQLError ? right ) =>
106105 EqualityComparer < GraphQLError ? > . Default . Equals ( left , right ) ;
107106
108107 /// <summary>
109- ///
108+ /// Tests whether two specified <see cref="GraphQLError"/> instances are not equal
110109 /// </summary>
111- /// <param name="left"></param>
112- /// <param name="right"></param>
113- /// <returns></returns>
110+ /// <param name="left">The <see cref="GraphQLError"/> instance that is to the left of the not equal operator </param>
111+ /// <param name="right">The <see cref="GraphQLError"/> instance that is to the right of the not equal operator </param>
112+ /// <returns>true if left and right are unequal; otherwise, false </returns>
114113 public static bool operator != ( GraphQLError ? left , GraphQLError ? right ) =>
115114 ! EqualityComparer < GraphQLError ? > . Default . Equals ( left , right ) ;
116115
0 commit comments