$csharp

( documentation for Telosys generator version 4.1.0 )


Object providing a set of utility functions for C# language code generation


Since : 4.1.0

Attributes and methods
.toStringMethod(EntityInContext entity, List attributes, int indentationLevel) : String

Returns a string containing all the code for a C# 'ToString()' method
Generates a 'ToString' method using the given attributes
(except non-printable attributes)
Indent with tabs (1 tab for each indentation level)

Parameters :
   entity : the entity for which to generate the 'ToString' method
   attributes : list of attributes to be used in the 'ToString' method
   indentationLevel : initial indentation level

Example :
   $csharp.toStringMethod( $entity, $attributes, 2 )

Since : 4.1.0

.toStringMethod(EntityInContext entity, List attributes, int indentationLevel, String indentationString) : String

Returns a string containing all the code for a C# 'ToString()' method
Generates a 'ToString' method using the given attributes
(except non-printable attributes)
Indentation with spaces (1 'indentationString' for each indentation level)

Parameters :
   entity : the entity for which to generate the 'ToString' method
   attributes : list of attributes to be used in the 'ToString' method
   indentationLevel : initial indentation level
   indentationString : string to use for each indentation (usually N spaces)

Example :
   $csharp.toStringMethod( $entity, $attributes, 2, ' ' )

Since : 4.1.0

.toStringMethod(EntityInContext entity, int indentationLevel) : String

Returns a string containing all the code for a C# 'ToString()' method
Generates a 'ToString' method using all the attributes of the given entity
(except non-printable attributes)
Indentation with tabs (1 tab for each indentation level)

Parameters :
   entity : the entity for which to generate the 'ToString' method
   indentationLevel : initial indentation level

Example :
   $csharp.toStringMethod( $entity, 2 )

Since : 4.1.0

.toStringMethod(EntityInContext entity, int indentationLevel, String indentationString) : String

Returns a string containing all the code for a C# 'ToString()' method
Generates a 'ToString' method using all the attributes of the given entity
(except non-printable attributes)
Indentation with spaces (1 'indentationString' for each indentation level)

Parameters :
   entity : the entity for which to generate the 'ToString' method
   indentationLevel : initial indentation level
   indentationString : string to use for each indentation (usually N spaces)

Example :
   $csharp.toStringMethod( $entity, 2, ' ' )

Since : 4.1.0