Added summary where needed.

This commit is contained in:
alexandre-spieser
2018-03-06 23:11:33 +00:00
parent 57d332ef2a
commit 345fca2e6e
14 changed files with 118 additions and 23 deletions
@@ -3,10 +3,18 @@ using System;
namespace MongoDbGenericRepository.Utils
{
/// <summary>
/// The IdGenerator instance, used to generate Ids of different types.
/// </summary>
public static class IdGenerator
{
private static readonly Random Random = new Random();
/// <summary>
/// Generates a random value of a given type.
/// </summary>
/// <typeparam name="TKey">The type of the value to generate.</typeparam>
/// <returns>A value of type TKey.</returns>
public static TKey GetId<TKey>()
{
var idTypeName = typeof(TKey).Name;