Exemple #1
0
        /*************************************/
        /**** Public Methods              ****/
        /*************************************/

        public virtual string Write()
        {
            try
            {
                CustomObject component = new CustomObject();
                component.CustomData["SelectedItem"] = (m_OriginalItem != null) ? m_OriginalItem : SelectedItem;
                component.CustomData["InputParams"]  = InputParams;
                component.CustomData["OutputParams"] = OutputParams;
                return(component.ToJson());
            }
            catch
            {
                BH.Engine.Reflection.Compute.RecordError($"{this} failed to serialise itself.");
                return("");
            }
        }