Example #1
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="updateFieldInstance">
        ///     The name of the instance of this field on the update object 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 GetDeserializeUpdateIntoUpdateString(string updateFieldInstance, string schemaObject, int indents)
        {
            var deserializationString =
                fieldType.GetDeserializeUpdateIntoUpdateString(updateFieldInstance, schemaObject, FieldNumber);

            return(CommonGeneratorUtils.IndentEveryNewline(deserializationString, indents));
        }
 /// <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="updateFieldInstance">
 ///     The name of the instance of this field on the update object 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 GetDeserializeUpdateIntoUpdateString(string updateFieldInstance, string schemaObject, int indents)
 {
     return(fieldType.GetDeserializeUpdateIntoUpdateString(updateFieldInstance, schemaObject, FieldNumber,
                                                           indents));
 }