Beispiel #1
0
        /// <summary>
        /// Create string representation of current snapshot
        /// </summary>
        /// <returns>Created representation</returns>
        public string GetRepresentation()
        {
            var result = new StringBuilder();

            if (!IsGlobalScope)
            {
                result.AppendLine("===LOCALS===");
                result.AppendLine(_locals.ToString());
            }
            result.AppendLine("===GLOBALS===");
            result.AppendLine(_globals.ToString());

            result.AppendLine("===GLOBAL CONTROLS===");
            result.AppendLine(_globalControls.ToString());

            result.AppendLine("===LOCAL CONTROLS===");
            result.AppendLine(_localControls.ToString());

            result.AppendLine("\n===META===");
            result.AppendLine(_meta.ToString());

            return(result.ToString());
        }