Book a Demo

Author Topic: Representing C# operators in EA (or UML)  (Read 3962 times)

Javier

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
  • Necessity is the mother of email
    • View Profile
Representing C# operators in EA (or UML)
« on: July 14, 2003, 08:47:01 am »
1 . Is there a particular "binding" to represent C# implicit/explicit conversion operators in EA, or should I use stereotypes?  That is, does

public static implicit operator DestType(MyType);
public static explicit operator DestType(MyType);

translate to:

+$<<implicit>>DestType(MyType t)
+$<<explicit>>DestType(MyType t)


2. Is there a particular "binding" to represent C#  conversion operators in EA, or should I use stereotypes?  That is, does

public static MyType operator+(MyType lhs, MyType rhs);

translate to:

+$<<operator>>+(MyType lhs, MyType rhs): MyType

or something like:

+$<<operator>>op_Addition(MyType lhs, MyType rhs): MyType


Regards,

Javier
We must become the change we want to see.
- Ghandi