Net.Bluewalk.DotNetUtils/Extensions/ObjectExtensions.cs
/// <summary>
/// Generate has of privided algorithm for this object
/// </summary>
/// <typeparam name="T">HashAlgorithm</typeparam>
/// <param name="instance"></param>
/// <returns></returns>
Generate has of privided algorithm for this object
Generate has of privided algorithm for this object
public static string GetHash<T>(this object instance) where T : HashAlgorithm, new()
        {
            var cryptoServiceProvider = new T();
            return ComputeHash(instance, cryptoServiceProvider);
        }
public static string GetHash < T > ( this object instance ) where T : HashAlgorithm , new ( ) { var cryptoServiceProvider = new T ( ) ; return ComputeHash ( instance , cryptoServiceProvider ) ; }
Generate has of privided algorithm for this object
Generate has of privided algorithm for this object
None
object
this
instance
None
typeparam
None