Bevisuali.UX.ExtSerialization.ToJObject C# (CSharp) Method

ToJObject() public static method

public static ToJObject ( this bn ) : Newtonsoft.Json.Linq.JObject
bn this
return Newtonsoft.Json.Linq.JObject
        public static JObject ToJObject(this BayesianNetwork bn)
        {
            return new JObject(
                new JProperty("name", bn.Name),
                new JProperty("variables",
                    new JArray(bn.VariablesOrdered.Select(v => v.ToJObject()))
                )
            );
        }

Same methods

ExtSerialization::ToJObject ( this ds ) : Newtonsoft.Json.Linq.JArray