File tree Expand file tree Collapse file tree
samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public string ToJson()
7373 /// <returns>Boolean</returns>
7474 public override bool Equals ( object obj )
7575 {
76- if ( ReferenceEquals ( null , obj ) ) return false ;
76+ if ( obj is null ) return false ;
7777 if ( ReferenceEquals ( this , obj ) ) return true ;
7878 return obj . GetType ( ) == GetType ( ) && Equals ( ( ApiResponse ) obj ) ;
7979 }
@@ -85,7 +85,7 @@ public override bool Equals(object obj)
8585 /// <returns>Boolean</returns>
8686 public bool Equals ( ApiResponse other )
8787 {
88- if ( ReferenceEquals ( null , other ) ) return false ;
88+ if ( other is null ) return false ;
8989 if ( ReferenceEquals ( this , other ) ) return true ;
9090
9191 return
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ public string ToJson()
6666 /// <returns>Boolean</returns>
6767 public override bool Equals ( object obj )
6868 {
69- if ( ReferenceEquals ( null , obj ) ) return false ;
69+ if ( obj is null ) return false ;
7070 if ( ReferenceEquals ( this , obj ) ) return true ;
7171 return obj . GetType ( ) == GetType ( ) && Equals ( ( Category ) obj ) ;
7272 }
@@ -78,7 +78,7 @@ public override bool Equals(object obj)
7878 /// <returns>Boolean</returns>
7979 public bool Equals ( Category other )
8080 {
81- if ( ReferenceEquals ( null , other ) ) return false ;
81+ if ( other is null ) return false ;
8282 if ( ReferenceEquals ( this , other ) ) return true ;
8383
8484 return
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ public string ToJson()
122122 /// <returns>Boolean</returns>
123123 public override bool Equals ( object obj )
124124 {
125- if ( ReferenceEquals ( null , obj ) ) return false ;
125+ if ( obj is null ) return false ;
126126 if ( ReferenceEquals ( this , obj ) ) return true ;
127127 return obj . GetType ( ) == GetType ( ) && Equals ( ( Order ) obj ) ;
128128 }
@@ -134,7 +134,7 @@ public override bool Equals(object obj)
134134 /// <returns>Boolean</returns>
135135 public bool Equals ( Order other )
136136 {
137- if ( ReferenceEquals ( null , other ) ) return false ;
137+ if ( other is null ) return false ;
138138 if ( ReferenceEquals ( this , other ) ) return true ;
139139
140140 return
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ public string ToJson()
124124 /// <returns>Boolean</returns>
125125 public override bool Equals ( object obj )
126126 {
127- if ( ReferenceEquals ( null , obj ) ) return false ;
127+ if ( obj is null ) return false ;
128128 if ( ReferenceEquals ( this , obj ) ) return true ;
129129 return obj . GetType ( ) == GetType ( ) && Equals ( ( Pet ) obj ) ;
130130 }
@@ -136,7 +136,7 @@ public override bool Equals(object obj)
136136 /// <returns>Boolean</returns>
137137 public bool Equals ( Pet other )
138138 {
139- if ( ReferenceEquals ( null , other ) ) return false ;
139+ if ( other is null ) return false ;
140140 if ( ReferenceEquals ( this , other ) ) return true ;
141141
142142 return
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ public string ToJson()
6666 /// <returns>Boolean</returns>
6767 public override bool Equals ( object obj )
6868 {
69- if ( ReferenceEquals ( null , obj ) ) return false ;
69+ if ( obj is null ) return false ;
7070 if ( ReferenceEquals ( this , obj ) ) return true ;
7171 return obj . GetType ( ) == GetType ( ) && Equals ( ( Tag ) obj ) ;
7272 }
@@ -78,7 +78,7 @@ public override bool Equals(object obj)
7878 /// <returns>Boolean</returns>
7979 public bool Equals ( Tag other )
8080 {
81- if ( ReferenceEquals ( null , other ) ) return false ;
81+ if ( other is null ) return false ;
8282 if ( ReferenceEquals ( this , other ) ) return true ;
8383
8484 return
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public string ToJson()
109109 /// <returns>Boolean</returns>
110110 public override bool Equals ( object obj )
111111 {
112- if ( ReferenceEquals ( null , obj ) ) return false ;
112+ if ( obj is null ) return false ;
113113 if ( ReferenceEquals ( this , obj ) ) return true ;
114114 return obj . GetType ( ) == GetType ( ) && Equals ( ( User ) obj ) ;
115115 }
@@ -121,7 +121,7 @@ public override bool Equals(object obj)
121121 /// <returns>Boolean</returns>
122122 public bool Equals ( User other )
123123 {
124- if ( ReferenceEquals ( null , other ) ) return false ;
124+ if ( other is null ) return false ;
125125 if ( ReferenceEquals ( this , other ) ) return true ;
126126
127127 return
You can’t perform that action at this time.
0 commit comments