Skip to content

Commit 4ab4741

Browse files
committed
Misc typos
1 parent 54ba4b3 commit 4ab4741

7 files changed

Lines changed: 23 additions & 23 deletions

File tree

NUGET.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE.md) [![NuGet](https://img.shields.io/nuget/vpre/Skybrud.Essentials.AspNetCore.svg)](https://www.nuget.org/packages/Skybrud.Essentials.AspNetCore) [![NuGet](https://img.shields.io/nuget/dt/Skybrud.Essentials.AspNetCore.svg)](https://www.nuget.org/packages/Skybrud.Essentials.AspNetCore)
22

3-
**Skybrud.Essentials.AspNetCore** is an add-on that builds on top of our [Skybrud.Essentials](https://github.com/skybrud/Skybrud.Essentials) package, and it provides various logic that makes it easier to work with different parts of ASP.NET Core - eg. parsing query strings and reading request headers.
3+
**Skybrud.Essentials.AspNetCore** is an add-on that builds on top of our [Skybrud.Essentials](https://github.com/skybrud/Skybrud.Essentials) package, and it provides various logic that makes it easier to work with different parts of ASP.NET Core - e.g. parsing query strings and reading request headers.
44

55
### Changelog
66

src/Skybrud.Essentials.AspNetCore/FormCollectionExtensions.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public static bool TryGetInt32(this IFormCollection? formData, string key, [NotN
196196
/// <param name="key">The key of the form data components.</param>
197197
/// <returns>An <see cref="int"/> array representing the converted values.</returns>
198198
/// <remarks>The value of each form data component may themselves be a separated list of <see cref="int"/>
199-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="int"/>
199+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="int"/>
200200
/// value will be ignored.</remarks>
201201
public static int[] GetInt32Array(this IFormCollection? formData, string key) {
202202
return formData == null ? Array.Empty<int>() : formData[key].ToInt32Array();
@@ -209,7 +209,7 @@ public static int[] GetInt32Array(this IFormCollection? formData, string key) {
209209
/// <param name="key">The key of the form data components.</param>
210210
/// <returns>An <see cref="int"/> list representing the converted values.</returns>
211211
/// <remarks>The value of each form data component may themselves be a separated list of <see cref="int"/>
212-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="int"/>
212+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="int"/>
213213
/// value will be ignored.</remarks>
214214
public static List<int> GetInt32List(this IFormCollection? formData, string key) {
215215
return formData?[key].ToInt32List() ?? new List<int>();
@@ -288,7 +288,7 @@ public static bool TryGetInt64(this IFormCollection? formData, string key, [NotN
288288
/// <param name="key">The key of the form data components.</param>
289289
/// <returns>A <see cref="long"/> array representing the converted values.</returns>
290290
/// <remarks>The value of each form data component may themselves be a separated list of <see cref="long"/>
291-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="long"/>
291+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="long"/>
292292
/// value will be ignored.</remarks>
293293
public static long[] GetInt64Array(this IFormCollection? formData, string key) {
294294
return formData == null ? Array.Empty<long>() : formData[key].ToInt64Array();
@@ -301,7 +301,7 @@ public static long[] GetInt64Array(this IFormCollection? formData, string key) {
301301
/// <param name="key">The key of the form data components.</param>
302302
/// <returns>A <see cref="long"/> list representing the converted values.</returns>
303303
/// <remarks>The value of each form data component may themselves be a separated list of <see cref="long"/>
304-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="long"/>
304+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="long"/>
305305
/// value will be ignored.</remarks>
306306
public static List<long> GetInt64List(this IFormCollection? formData, string key) {
307307
return formData?[key].ToInt64List() ?? new List<long>();
@@ -380,7 +380,7 @@ public static bool TryGetFloat(this IFormCollection? formData, string key, [NotN
380380
/// <param name="key">The key of the form data components.</param>
381381
/// <returns>A <see cref="float"/> array representing the converted values.</returns>
382382
/// <remarks>The value of each form data component may themselves be a separated list of <see cref="float"/>
383-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="float"/>
383+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="float"/>
384384
/// value will be ignored.</remarks>
385385
public static float[] GetFloatArray(this IFormCollection? formData, string key) {
386386
return formData?[key].ToFloatArray() ?? Array.Empty<float>();
@@ -393,7 +393,7 @@ public static float[] GetFloatArray(this IFormCollection? formData, string key)
393393
/// <param name="key">The key of the form data components.</param>
394394
/// <returns>A <see cref="float"/> list representing the converted values.</returns>
395395
/// <remarks>The value of each form data component may themselves be a separated list of <see cref="float"/>
396-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="float"/>
396+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="float"/>
397397
/// value will be ignored.</remarks>
398398
public static List<float> GetFloatList(this IFormCollection? formData, string key) {
399399
return formData?[key].ToFloatList() ?? new List<float>();
@@ -472,7 +472,7 @@ public static bool TryGetDouble(this IFormCollection? formData, string key, [Not
472472
/// <param name="key">The key of the form data components.</param>
473473
/// <returns>A <see cref="double"/> array representing the converted values.</returns>
474474
/// <remarks>The value of each form data component may themselves be a separated list of <see cref="double"/>
475-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="double"/>
475+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="double"/>
476476
/// value will be ignored.</remarks>
477477
public static double[] GetDoubleArray(this IFormCollection? formData, string key) {
478478
return formData == null ? Array.Empty<double>() : formData[key].ToDoubleArray();
@@ -485,7 +485,7 @@ public static double[] GetDoubleArray(this IFormCollection? formData, string key
485485
/// <param name="key">The key of the form data components.</param>
486486
/// <returns>A <see cref="double"/> list representing the converted values.</returns>
487487
/// <remarks>The value of each form data component may themselves be a separated list of <see cref="double"/>
488-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="double"/>
488+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="double"/>
489489
/// value will be ignored.</remarks>
490490
public static List<double> GetDoubleList(this IFormCollection? formData, string key) {
491491
return formData?[key].ToDoubleList() ?? new List<double>();

src/Skybrud.Essentials.AspNetCore/Json/Newtonsoft/NewtonsoftJsonBody.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Skybrud.Essentials.AspNetCore.Json.Newtonsoft;
99
public class NewtonsoftJsonBody {
1010

1111
/// <summary>
12-
/// Gets or sets the meta data for the response.
12+
/// Gets or sets the meta-data for the response.
1313
/// </summary>
1414
[JsonProperty(PropertyName = "meta")]
1515
public NewtonsoftJsonMetaData Meta { get; set; } = new();

src/Skybrud.Essentials.AspNetCore/Json/Newtonsoft/NewtonsoftJsonMetaData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace Skybrud.Essentials.AspNetCore.Json.Newtonsoft;
55

66
/// <summary>
7-
/// Class representing the meta data of a JSON response.
7+
/// Class representing the meta-data of a JSON response.
88
/// </summary>
99
public class NewtonsoftJsonMetaData {
1010

src/Skybrud.Essentials.AspNetCore/Json/Newtonsoft/NewtonsoftJsonResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Skybrud.Essentials.AspNetCore.Json.Newtonsoft;
66

77
/// <summary>
8-
/// Class representing a JOSN based result serialized using <strong>Newtonsoft.Json</strong>.
8+
/// Class representing a JSON based result serialized using <strong>Newtonsoft.Json</strong>.
99
/// </summary>
1010
public class NewtonsoftJsonResult : ContentResult {
1111

src/Skybrud.Essentials.AspNetCore/QueryStringExtensions.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public static bool TryGetInt32(this IQueryCollection? query, string key, [NotNul
198198
/// <param name="key">The key of the query string components.</param>
199199
/// <returns>An <see cref="int"/> array representing the converted values.</returns>
200200
/// <remarks>The value of each query string component may themselves be a separated list of <see cref="int"/>
201-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="int"/>
201+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="int"/>
202202
/// value will be ignored.</remarks>
203203
public static int[] GetInt32Array(this IQueryCollection? query, string key) {
204204
return query == null ? Array.Empty<int>() : query[key].ToInt32Array();
@@ -211,7 +211,7 @@ public static int[] GetInt32Array(this IQueryCollection? query, string key) {
211211
/// <param name="key">The key of the query string components.</param>
212212
/// <returns>An <see cref="int"/> list representing the converted values.</returns>
213213
/// <remarks>The value of each query string component may themselves be a separated list of <see cref="int"/>
214-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="int"/>
214+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="int"/>
215215
/// value will be ignored.</remarks>
216216
public static List<int> GetInt32List(this IQueryCollection? query, string key) {
217217
return query?[key].ToInt32List() ?? new List<int>();
@@ -290,7 +290,7 @@ public static bool TryGetInt64(this IQueryCollection? query, string key, [NotNul
290290
/// <param name="key">The key of the query string components.</param>
291291
/// <returns>A <see cref="long"/> array representing the converted values.</returns>
292292
/// <remarks>The value of each query string component may themselves be a separated list of <see cref="long"/>
293-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="long"/>
293+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="long"/>
294294
/// value will be ignored.</remarks>
295295
public static long[] GetInt64Array(this IQueryCollection? query, string key) {
296296
return query == null ? Array.Empty<long>() : query[key].ToInt64Array();
@@ -303,7 +303,7 @@ public static long[] GetInt64Array(this IQueryCollection? query, string key) {
303303
/// <param name="key">The key of the query string components.</param>
304304
/// <returns>A <see cref="long"/> list representing the converted values.</returns>
305305
/// <remarks>The value of each query string component may themselves be a separated list of <see cref="long"/>
306-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="long"/>
306+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="long"/>
307307
/// value will be ignored.</remarks>
308308
public static List<long> GetInt64List(this IQueryCollection? query, string key) {
309309
return query?[key].ToInt64List() ?? new List<long>();
@@ -382,7 +382,7 @@ public static bool TryGetFloat(this IQueryCollection? query, string key, [NotNul
382382
/// <param name="key">The key of the query string components.</param>
383383
/// <returns>A <see cref="float"/> array representing the converted values.</returns>
384384
/// <remarks>The value of each query string component may themselves be a separated list of <see cref="float"/>
385-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="float"/>
385+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="float"/>
386386
/// value will be ignored.</remarks>
387387
public static float[] GetFloatArray(this IQueryCollection? query, string key) {
388388
return query?[key].ToFloatArray() ?? Array.Empty<float>();
@@ -395,7 +395,7 @@ public static float[] GetFloatArray(this IQueryCollection? query, string key) {
395395
/// <param name="key">The key of the query string components.</param>
396396
/// <returns>A <see cref="float"/> list representing the converted values.</returns>
397397
/// <remarks>The value of each query string component may themselves be a separated list of <see cref="float"/>
398-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="float"/>
398+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="float"/>
399399
/// value will be ignored.</remarks>
400400
public static List<float> GetFloatList(this IQueryCollection? query, string key) {
401401
return query?[key].ToFloatList() ?? new List<float>();
@@ -474,7 +474,7 @@ public static bool TryGetDouble(this IQueryCollection? query, string key, [NotNu
474474
/// <param name="key">The key of the query string components.</param>
475475
/// <returns>A <see cref="double"/> array representing the converted values.</returns>
476476
/// <remarks>The value of each query string component may themselves be a separated list of <see cref="double"/>
477-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="double"/>
477+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="double"/>
478478
/// value will be ignored.</remarks>
479479
public static double[] GetDoubleArray(this IQueryCollection? query, string key) {
480480
return query == null ? Array.Empty<double>() : query[key].ToDoubleArray();
@@ -487,7 +487,7 @@ public static double[] GetDoubleArray(this IQueryCollection? query, string key)
487487
/// <param name="key">The key of the query string components.</param>
488488
/// <returns>A <see cref="double"/> list representing the converted values.</returns>
489489
/// <remarks>The value of each query string component may themselves be a separated list of <see cref="double"/>
490-
/// values - eg. separated by commas. Values that can not be converted to a corresponding <see cref="double"/>
490+
/// values - e.g. separated by commas. Values that can not be converted to a corresponding <see cref="double"/>
491491
/// value will be ignored.</remarks>
492492
public static List<double> GetDoubleList(this IQueryCollection? query, string key) {
493493
return query?[key].ToDoubleList() ?? new List<double>();
@@ -774,7 +774,7 @@ public static bool TryGetEnum<TEnum>(this IQueryCollection? query, string key, o
774774
#endregion
775775

776776
/// <summary>
777-
/// Returns an URL encoded string representing the specified <paramref name="query"/>.
777+
/// Returns a URL encoded string representing the specified <paramref name="query"/>.
778778
/// </summary>
779779
/// <param name="query">The query string to be encoded.</param>
780780
/// <returns>The URL encoded version of the query string.</returns>

src/Skybrud.Essentials.AspNetCore/StringValuesExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static class StringValuesExtensions {
2323
/// Parses the specified array of string <paramref name="values"/> into a <see cref="string"/> array.
2424
/// </summary>
2525
/// <param name="values">The string values.</param>
26-
/// <returns>A array of <see cref="string"/>.</returns>
26+
/// <returns>An array of <see cref="string"/>.</returns>
2727
public static string[] ToStringArray(this StringValues? values) {
2828
return values?.SelectMany(StringUtils.ParseStringArray).ToArray() ?? Array.Empty<string>();
2929
}
@@ -33,7 +33,7 @@ public static string[] ToStringArray(this StringValues? values) {
3333
/// </summary>
3434
/// <param name="values">The string values.</param>
3535
/// <param name="separators">An array of supported separators.</param>
36-
/// <returns>A array of <see cref="string"/>.</returns>
36+
/// <returns>An array of <see cref="string"/>.</returns>
3737
public static string[] ToStringArray(this StringValues? values, params char[] separators) {
3838
return values?.SelectMany(x => StringUtils.ParseStringArray(x, separators)).ToArray() ?? Array.Empty<string>();
3939
}

0 commit comments

Comments
 (0)