Skip to content

Commit

Permalink
Fixing XML documentation comments - closes #112
Browse files Browse the repository at this point in the history
  • Loading branch information
bfren committed Jan 1, 2022
1 parent 24b3025 commit 5bd3209
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 15 deletions.
3 changes: 3 additions & 0 deletions src/Jeebs.Cryptography/Lockable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public abstract class Lockable
/// </summary>
public static readonly int KeyLength = 32;

/// <summary>
/// Create object
/// </summary>
protected Lockable() { }

/// <summary>Messages</summary>
Expand Down
3 changes: 3 additions & 0 deletions src/Jeebs.Cryptography/Locked.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ private byte[] HashKey(string key) =>
/// </summary>
public abstract class Locked
{
/// <summary>
/// Create object
/// </summary>
protected Locked() { }

/// <summary>Messages</summary>
Expand Down
4 changes: 2 additions & 2 deletions src/Jeebs.Random/Rnd/NumberF/NumberF.GetInt32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static partial class Rnd
public static partial class NumberF
{
/// <summary>
/// Returns a random integer between <see cref="0"/> and <see cref="int.MaxValue"/> inclusive
/// Returns a random integer between <see langword="0"/> and <see cref="int.MaxValue"/> inclusive
/// </summary>
/// <remarks>
/// Don't share code with <see cref="GetInt32(int, int)"/> for memory allocation reasons
Expand All @@ -19,7 +19,7 @@ public static int GetInt32() =>
GetInt32(0, int.MaxValue);

/// <summary>
/// Returns a random integer between <see cref="0"/> and <paramref name="max"/> inclusive
/// Returns a random integer between <see langword="0"/> and <paramref name="max"/> inclusive
/// </summary>
/// <remarks>
/// Don't share code with <see cref="GetInt32(int, int)"/> for memory allocation reasons
Expand Down
4 changes: 2 additions & 2 deletions src/Jeebs.Random/Rnd/NumberF/NumberF.GetInt64.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static partial class Rnd
public static partial class NumberF
{
/// <summary>
/// Returns a random integer between <see cref="0"/> and <see cref="long.MaxValue"/> inclusive
/// Returns a random integer between <see langword="0"/> and <see cref="long.MaxValue"/> inclusive
/// </summary>
/// <remarks>
/// Don't share code with <see cref="GetInt32(int, int)"/> for memory allocation reasons
Expand All @@ -19,7 +19,7 @@ public static long GetInt64() =>
GetInt64(0, long.MaxValue);

/// <summary>
/// Returns a random integer between <see cref="0"/> and <paramref name="max"/> inclusive
/// Returns a random integer between <see langword="0"/> and <paramref name="max"/> inclusive
/// </summary>
/// <remarks>
/// Don't share code with <see cref="GetInt32(int, int)"/> for memory allocation reasons
Expand Down
4 changes: 2 additions & 2 deletions src/Jeebs.Random/Rnd/NumberF/NumberF.GetUInt32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static partial class Rnd
public static partial class NumberF
{
/// <summary>
/// Returns a random integer between <see cref="0"/> and <see cref="uint.MaxValue"/> inclusive
/// Returns a random integer between <see langword="0"/> and <see cref="uint.MaxValue"/> inclusive
/// </summary>
/// <remarks>
/// Don't share code with <see cref="GetUInt64(ulong, ulong)"/> for memory allocation reasons
Expand All @@ -19,7 +19,7 @@ public static uint GetUInt32() =>
GetUInt32(0, uint.MaxValue);

/// <summary>
/// Returns a random integer between <see cref="0"/> and <see cref="uint.MaxValue"/> inclusive
/// Returns a random integer between <see langword="0"/> and <see cref="uint.MaxValue"/> inclusive
/// </summary>
/// <remarks>
/// Don't share code with <see cref="GetUInt64(ulong, ulong)"/> for memory allocation reasons
Expand Down
4 changes: 2 additions & 2 deletions src/Jeebs.Random/Rnd/NumberF/NumberF.GetUInt64.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static partial class Rnd
public static partial class NumberF
{
/// <summary>
/// Returns a random integer between <see cref="0"/> and <see cref="ulong.MaxValue"/> inclusive
/// Returns a random integer between <see langword="0"/> and <see cref="ulong.MaxValue"/> inclusive
/// </summary>
/// <remarks>
/// Don't share code with <see cref="GetUInt32(uint, uint)"/> for memory allocation reasons
Expand All @@ -19,7 +19,7 @@ public static ulong GetUInt64() =>
GetUInt64(0, ulong.MaxValue);

/// <summary>
/// Returns a random integer between <see cref="0"/> and <paramref name="max"/> inclusive
/// Returns a random integer between <see langword="0"/> and <paramref name="max"/> inclusive
/// </summary>
/// <remarks>
/// Don't share code with <see cref="GetUInt32(uint, uint)"/> for memory allocation reasons
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@ public abstract class AttachmentCustomField : CustomField<AttachmentCustomField.
/// </summary>
protected IQueryPosts QueryPosts { get; private init; }

/// <inheritdoc/>
/// <inheritdoc cref="CustomField{T}.CustomField(string, T)"/>
protected AttachmentCustomField(string key) : this(new Query.Posts(), key) { }

/// <summary>
/// Create object from posts
/// </summary>
/// <param name="queryPosts">IQueryPosts</param>
/// <param name="key">Meta key (for post_meta table)</param>
protected AttachmentCustomField(IQueryPosts queryPosts, string key) : base(key, new Attachment()) =>
QueryPosts = queryPosts;

Expand Down
5 changes: 1 addition & 4 deletions src/Jeebs.WordPress.Data/CustomFields/FileCustomField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ namespace Jeebs.WordPress.Data;
/// </summary>
public abstract class FileCustomField : AttachmentCustomField
{
/// <summary>
/// Create object with specified meta key
/// </summary>
/// <param name="key">Meta key (for post_meta table)</param>
/// <inheritdoc cref="CustomField{T}.CustomField(string, T)"/>
protected FileCustomField(string key) : base(key) { }

/// <inheritdoc/>
Expand Down
7 changes: 6 additions & 1 deletion src/Jeebs.WordPress.Data/CustomFields/TermCustomField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ public abstract class TermCustomField : CustomField<TermCustomField.Term>
/// </summary>
protected IQueryTerms QueryTerms { get; private init; }

/// <inheritdoc/>
/// <inheritdoc cref="CustomField{T}.CustomField(string, T)"/>
protected TermCustomField(string key) : this(new Query.Terms(), key) { }

/// <summary>
/// Create object from terms
/// </summary>
/// <param name="queryTerms">IQueryTerms</param>
/// <param name="key">Meta key (for post_meta table)</param>
protected TermCustomField(IQueryTerms queryTerms, string key) : base(key, new Term()) =>
QueryTerms = queryTerms;

Expand Down
2 changes: 1 addition & 1 deletion src/Jeebs.WordPress.Data/CustomFields/TextCustomField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public override string ValueObj
ValueStr = value;
}

/// <inheritdoc/>
/// <inheritdoc cref="CustomField{T}.CustomField(string, T)"/>
protected TextCustomField(string key) : base(key, string.Empty) { }

/// <inheritdoc/>
Expand Down

0 comments on commit 5bd3209

Please sign in to comment.