Search Results for

    Show / Hide Table of Contents
    View Source

    Class HashCodeCombiner

    Used to create a .NET HashCode from multiple objects.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core
    Assembly: Umbraco.Core.dll
    Syntax
    public class HashCodeCombiner
    Remarks

    .Net has a class the same as this: System.Web.Util.HashCodeCombiner and of course it works for all sorts of things which we've not included here as we just need a quick easy class for this in order to create a unique hash of directories/files to see if they have changed. NOTE: It's probably best to not relying on the hashing result across AppDomains! If you need a constant/reliable hash value between AppDomains use SHA1. This is perfect for hashing things in a very fast way for a single AppDomain.

    Methods

    View Source

    AddCaseInsensitiveString(String)

    Declaration
    public void AddCaseInsensitiveString(string s)
    Parameters
    Type Name Description
    System.String s
    View Source

    AddDateTime(DateTime)

    Declaration
    public void AddDateTime(DateTime d)
    Parameters
    Type Name Description
    DateTime d
    View Source

    AddFile(FileInfo)

    Declaration
    public void AddFile(FileInfo f)
    Parameters
    Type Name Description
    FileInfo f
    View Source

    AddFileSystemItem(FileSystemInfo)

    Declaration
    public void AddFileSystemItem(FileSystemInfo f)
    Parameters
    Type Name Description
    FileSystemInfo f
    View Source

    AddFolder(DirectoryInfo)

    Declaration
    public void AddFolder(DirectoryInfo d)
    Parameters
    Type Name Description
    DirectoryInfo d
    View Source

    AddInt(Int32)

    Declaration
    public void AddInt(int i)
    Parameters
    Type Name Description
    System.Int32 i
    View Source

    AddObject(Object)

    Declaration
    public void AddObject(object o)
    Parameters
    Type Name Description
    System.Object o
    View Source

    AddString(String)

    Declaration
    public void AddString(string s)
    Parameters
    Type Name Description
    System.String s
    View Source

    GetCombinedHashCode()

    Returns the hex code of the combined hash code

    Declaration
    public string GetCombinedHashCode()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • AddCaseInsensitiveString(String)
      • AddDateTime(DateTime)
      • AddFile(FileInfo)
      • AddFileSystemItem(FileSystemInfo)
      • AddFolder(DirectoryInfo)
      • AddInt(Int32)
      • AddObject(Object)
      • AddString(String)
      • GetCombinedHashCode()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX