-
Key: IDL4CSP-2
-
Status: closed
-
Source: Real-Time Innovations ( Mr. Fernando Garcia-Aranda)
-
Summary:
All constructed data types should implement IEquatable:
The example in section 7.2.4.3.1 would now look as follows:
public class MyStruct : IEquatable<MyStruct> { public MyStruct() {...} public MyStruct(int a_long, short a_short, int[] a_long_array) {...} public int a_long { get; set; } public short a_short { get; set; } public int[] a_long_array { get; set; } public bool Equals(MyStruct other) => a_long == other.a_long && a_short == other.a_short && a_long_array.Equals(other.a_long_array) }
-
Reported: IDL4-CSHARP 1.0a1 — Sun, 22 Mar 2020 20:13 GMT
-
Disposition: Resolved — IDL4-CSHARP 1.0
-
Disposition Summary:
Add IEquatable interface to all generated classes
This resoultion mandates the implementation of the IEquatable interface in all generated classes.
-
Updated: Mon, 29 Mar 2021 12:23 GMT
IDL4CSP — All generated classes and structs should implement IEquatable
- Key: IDL4CSP-2
- OMG Task Force: IDL4 to C# Language Mapping (IDL4-CSHARP) 1.0 FTF