Added summary where needed.

This commit is contained in:
alexandre-spieser committed 2018-03-06 23:11:33 +00:00
1 parent 57d332ef2a
commit 345fca2e6e
14 files changed
+118 -23

No files matched your search

@@ -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;