예제 #1
0
        public static bool SetJArray(this SAMSchema sAMSchema, Element element, JArray jArray)
        {
            if (sAMSchema == null || element == null || jArray == null)
            {
                return(false);
            }

            string fieldName = sAMSchema.FieldName;

            if (string.IsNullOrWhiteSpace(fieldName))
            {
                return(false);
            }

            return(SetJArray(sAMSchema.GetSchema(), element, jArray, fieldName));
        }
예제 #2
0
        public static bool SetJObject(this SAMSchema sAMSchema, Element element, JObject jObject)
        {
            if (sAMSchema == null || element == null || jObject == null)
            {
                return(false);
            }

            string fieldName = sAMSchema.FieldName;

            if (string.IsNullOrWhiteSpace(fieldName))
            {
                return(false);
            }

            return(SetJObject(sAMSchema.GetSchema(), element, jObject, fieldName));
        }