User Tools

Site Tools


notes:csharp:struct

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
notes:csharp:struct [2016/08/18]
admin
notes:csharp:struct [2016/12/14] (current)
admin
Line 1: Line 1:
 ====== C# struct ====== ====== C# struct ======
  
-**Example**:​ Struct ​declarations. Note that the compiler automatically adds a default ctor to the struct that sets all fields to their default values:+Examples of struct ​declarations. Note that the compiler automatically adds a default ctor to the struct that sets all fields to their default values:
 <code csharp> <code csharp>
 // Example #1 // Example #1
Line 68: Line 68:
  
  
-**Example**: A struct with overloaded operators:+Example: A struct with overloaded operators:
 <code csharp> <code csharp>
 public struct Vector2D public struct Vector2D
notes/csharp/struct.txt ยท Last modified: 2016/12/14 by admin