OCLOperators typename
(Created page with "The type name as a string")
 
No edit summary
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The type name as a string
<message>Write the content here to display this box</message>
[[Category:OCL General Operators]]
{{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.'''
 
==== See also: ====
 
* [[Documentation:OCLOperators OclType|OCLOperators OclType]]

Latest revision as of 05:55, 27 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:

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