Example C# class generated from the IDL struct Point, used by MyType.
More...
Inherits IEquatable< Point >.
|
| | Point () |
| | Creates an new instance with the default values (X and Y are 0) More...
|
| |
| | Point (int X, int Y) |
| | Creates an new instance with the given values for each property More...
|
| |
| | Point (Point other_) |
| | Creates a new instance by making a deep copy of an existing one More...
|
| |
| bool | Equals (Point other) |
| | Compares two Point instances for equality (IEquatable implementation) More...
|
| |
| override bool | Equals (object obj) |
| | Compares this instance with another object (override of object.Equals) More...
|
| |
| override string | ToString () |
| | Provides a readable string representation More...
|
| |
| override int | GetHashCode () |
| | Calculates the hash code based on the values of X and Y More...
|
| |
|
| int | X [get, set] |
| | Gets or sets the value for the field X More...
|
| |
| int | Y [get, set] |
| | Gets or sets the value for the field Y More...
|
| |
Example C# class generated from the IDL struct Point, used by MyType.
- See also
- Example.MyType
◆ Point() [1/3]
Creates an new instance with the default values (X and Y are 0)
◆ Point() [2/3]
| Example.Point.Point |
( |
int |
X, |
|
|
int |
Y |
|
) |
| |
|
inline |
Creates an new instance with the given values for each property
- Parameters
-
| X | The value for the property X |
| Y | The value for the property Y |
◆ Point() [3/3]
| Example.Point.Point |
( |
Point |
other_ | ) |
|
|
inline |
Creates a new instance by making a deep copy of an existing one
- Parameters
-
◆ Equals() [1/2]
| bool Example.Point.Equals |
( |
Point |
other | ) |
|
|
inline |
Compares two Point instances for equality (IEquatable implementation)
- Parameters
-
| other | The instance to compare |
- Returns
- Whether the two instances have the same values of X and Y
◆ Equals() [2/2]
| override bool Example.Point.Equals |
( |
object |
obj | ) |
|
Compares this instance with another object (override of object.Equals)
- Parameters
-
- Returns
- True only if obj is of type Point and both are equal
◆ ToString()
| override string Example.Point.ToString |
( |
| ) |
|
◆ GetHashCode()
| override int Example.Point.GetHashCode |
( |
| ) |
|
|
inline |
Calculates the hash code based on the values of X and Y
Gets or sets the value for the field X
Gets or sets the value for the field Y