Esempio n. 1
0
        /// <summary>
        /// Gets an identifier that can be used for logging
        /// </summary>
        public static string GetDebugIdentifier(this _View element)
        {
            if (element == null)
            {
                return("--NULL--");
            }

            var name = (element as IFrameworkElement)?.Name;

            return(name.HasValue()
                                ? element.GetType().Name + "_" + name + "_" + element.GetHashCode()
                                : element.GetType().Name + "_" + element.GetHashCode());
        }