Exemple #1
0
    /// <summary>
    /// Creates a unique Cache key for a Combination of ContentPresenter + ChildName
    /// </summary>
    private static string CreateKey(ContentPresenter ContentPresenter, string ChildName)
    {
        var hash = 17;

        hash = hash * 23 + ContentPresenter.GetHashCode();
        if (ChildName != null)
        {
            hash = hash * 23 + ChildName.GetHashCode();
        }
        var result = hash.ToString();

        return(result);
    }