示例#1
0
 protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
 {
     base.setJSON(obj, host, options);
     if (RelatingContext != host)
     {
         obj["RelatingContext"] = RelatingContext.getJson(this, options);
     }
     obj["RelatedDefinitions"] = new JArray(mRelatedDefinitions.ConvertAll(x => mDatabase[x.Index].getJson(this, options)));
 }
示例#2
0
 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
 {
     base.setJSON(obj, host, processed);
     if (mRelatingContext != host.mIndex)
     {
         obj["RelatingContext"] = RelatingContext.getJson(this, processed);
     }
     obj["RelatedDefinitions"] = new JArray(mRelatedDefinitions.ConvertAll(x => mDatabase[x].getJson(this, processed)));
 }
示例#3
0
        public override string GetStepParameters()
        {
            var parameters = new List <string>();

            parameters.Add(GlobalId != null ? GlobalId.ToStepValue() : "$");
            parameters.Add(OwnerHistory != null ? OwnerHistory.ToStepValue() : "$");
            parameters.Add(Name != null ? Name.ToStepValue() : "$");
            parameters.Add(Description != null ? Description.ToStepValue() : "$");
            parameters.Add(RelatingContext != null ? RelatingContext.ToStepValue() : "$");
            parameters.Add(RelatedDefinitions != null ? RelatedDefinitions.ToStepValue() : "$");

            return(string.Join(", ", parameters.ToArray()));
        }