/// <summary>
 ///     Helper function that returns a (multi-line) string that represents the C# code required to deserialize
 ///     this field on a ComponentUpdate object.
 /// </summary>
 /// <param name="fieldInstance">The name of the instance of this field that is being deserialized into.</param>
 /// <param name="schemaObject">The name of the SchemaObject is to be used in deserialization.</param>
 /// <param name="indents">The indent level that the block of code should be at.</param>
 /// <returns></returns>
 public string GetDeserializeUpdateString(string fieldInstance, string schemaObject, int indents)
 {
     return(fieldType.GetDeserializeUpdateString(fieldInstance, schemaObject, FieldNumber,
                                                 indents));
 }
예제 #2
0
        /// <summary>
        ///     Helper function that returns a (multi-line) string that represents the C# code required to deserialize
        ///     this field on a ComponentUpdate object.
        /// </summary>
        /// <param name="fieldInstance">The name of the instance of this field that is being deserialized into.</param>
        /// <param name="schemaObject">The name of the SchemaObject is to be used in deserialization.</param>
        /// <param name="indents">The indent level that the block of code should be at.</param>
        /// <returns></returns>
        public string GetDeserializeUpdateString(string fieldInstance, string schemaObject, int indents)
        {
            var deserializationString = fieldType.GetDeserializeUpdateString(fieldInstance, schemaObject, FieldNumber);

            return(CommonGeneratorUtils.IndentEveryNewline(deserializationString, indents));
        }