/// <summary>
 ///     Helper function that returns a (multi-line) string that represents the C# code required to deserialize
 ///     this field on a ComponentData 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>
 public string GetDeserializeString(string fieldInstance, string schemaObject, int indents)
 {
     return(fieldType.GetDeserializationString(fieldInstance, schemaObject, FieldNumber, indents));
 }
Ejemplo n.º 2
0
        /// <summary>
        ///     Helper function that returns a (multi-line) string that represents the C# code required to deserialize
        ///     this field on a ComponentData 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>
        public string GetDeserializeString(string fieldInstance, string schemaObject, int indents)
        {
            var deserializationString = fieldType.GetDeserializationString(fieldInstance, schemaObject, FieldNumber);

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