public void Serialize(Map2 m)
        {
            ReflectiveSerializer.Serialize(StateMachine, m);

            m["¡StmType"] = StateMachine.GetType().SimpleQualifiedName();
            m["¡Task"]    = Task;
        }
예제 #2
0
        /// <summary>
        /// Turns an object into a JSON string using reflection.
        /// </summary>
        /// <typeparam name="T">The desired type.</typeparam>
        /// <param name="Object">The object.</param>
        /// <param name="Indent">The optional indenting.</param>
        /// <returns></returns>
        public static string StringifyFrom <T>(T Object, bool Indent = false)
        {
            var Wrapped = ReflectiveSerializer.Serialize <T>(Object);

            return(Stringify(Wrapped, Indent));
        }