OCLOperators typename
(Replacing message template with parser tag)
No edit summary
Line 1: Line 1:
<message>Write the content here to display this box</message>
<message>Write the content here to display this box</message>
The type name as a string.
[[Category:OCL General Operators]]
[[Category:OCL General Operators]]
{{Edited|July|12|2024}}
{{Edited|July|12|2024}}Returns the data type information of an object as a string.
 
String.typeName
Returns
System.String
 
==== Example: ====
vStringValue:String='SomeString'
 
vStringValue.OclType.typeName
Returns
System.String
'''OclType.asString''' returns the same value as '''typeName.'''<br />
 
==== See also: ====
[[Documentation:OCLOperators OclType|OCLOperators OclType]]

Revision as of 03:50, 22 August 2024

Returns the data type information of an object as a string.

String.typeName

Returns

System.String

Example:

vStringValue:String='SomeString'
vStringValue.OclType.typeName

Returns

System.String

OclType.asString returns the same value as typeName.

See also:

OCLOperators OclType

This page was edited 24 days ago on 08/27/2024. What links here