struct（C# 参考）struct (C# Reference)

struct 类型是一种值类型，通常用来封装小型相关变量组，例如，矩形的坐标或库存商品的特征。A struct type is a value type that is typically used to encapsulate small groups of related variables, such as the coordinates of a rectangle or the characteristics of an item in an inventory. 下面的示例显示了一个简单的结构声明：The following example shows a simple struct declaration:

public struct Book
{
public decimal price;
public string title;
public string author;
}