@@ -156,13 +156,11 @@ public static async Task<ImageCacheMetadata> ReadAsync(Stream stream)
156156 /// <inheritdoc/>
157157 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
158158 public bool Equals ( ImageCacheMetadata other )
159- {
160- return this . SourceLastWriteTimeUtc == other . SourceLastWriteTimeUtc
161- && this . CacheLastWriteTimeUtc == other . CacheLastWriteTimeUtc
162- && this . ContentType == other . ContentType
163- && this . CacheControlMaxAge == other . CacheControlMaxAge
164- && this . ContentLength == other . ContentLength ;
165- }
159+ => this . SourceLastWriteTimeUtc == other . SourceLastWriteTimeUtc
160+ && this . CacheLastWriteTimeUtc == other . CacheLastWriteTimeUtc
161+ && this . ContentType == other . ContentType
162+ && this . CacheControlMaxAge == other . CacheControlMaxAge
163+ && this . ContentLength == other . ContentLength ;
166164
167165 /// <inheritdoc/>
168166 public override bool Equals ( object obj )
@@ -181,16 +179,14 @@ public override int GetHashCode() => HashCode.Combine(
181179 /// </summary>
182180 /// <returns>The <see cref="Dictionary{String, String}"/>.</returns>
183181 public Dictionary < string , string > ToDictionary ( )
184- {
185- return new Dictionary < string , string >
182+ => new ( )
186183 {
187184 { SourceLastModifiedKey , this . SourceLastWriteTimeUtc . ToString ( "o" ) } ,
188185 { CacheLastModifiedKey , this . CacheLastWriteTimeUtc . ToString ( "o" ) } ,
189186 { ContentTypeKey , this . ContentType } ,
190187 { CacheControlKey , this . CacheControlMaxAge . TotalSeconds . ToString ( NumberFormatInfo . InvariantInfo ) } ,
191188 { ContentLengthKey , this . ContentLength . ToString ( NumberFormatInfo . InvariantInfo ) }
192189 } ;
193- }
194190
195191 /// <inheritdoc/>
196192 public override string ToString ( )
0 commit comments