Bombsquad.DynamicMedia.Implementations.ETag.ETagUtil.CreateStrongETag C# (CSharp) 메소드

CreateStrongETag() 공개 정적인 메소드

public static CreateStrongETag ( string value ) : string
value string
리턴 string
        public static string CreateStrongETag(string value)
        {
            return "\"" + value + "\"";
        }

Usage Example

예제 #1
0
 public string CalculateETag(FileInfo file)
 {
     using (var stream = file.Open(FileMode.Open, FileAccess.Read, FileShare.Read))
     {
         var hash = m_hashAlgorithm.ComputeHash(stream);
         return(ETagUtil.CreateStrongETag(new string(hash.SelectMany(b => b.ToString("x2").ToLower()).ToArray())));
     }
 }