structs

structs

 英

  • 网络组件;标签;中基本配置

例句

By default, top-level classes, interfaces, or structs that have no explicit access qualifier are treated as internal.

默认情况没有显式访问限定符顶级接口结构视为内部接口结构

Unsafe buffers can only be instance fields of structs in an unsafe context.

安全缓冲区只能安全上下结构实例字段

Suppose you want to tag classes and structs with the name of the programmer who wrote the class or struct.

假设编写结构程序员名字标记结构

Structs in C are not quite "first class types, but with the help of compound literals, they are at least a lot easier to use. "

语言结构不是头等类型”,复合字面量帮助它们至少容易使用

The rules that control method overloading are the same for methods within generic classes , generic structs or generic interfaces .

对于结构接口方法控制方法重载规则相同

Structs do not support inheritance but they do support interfaces.

结构支持继承支持接口

Discusses the various collection types available in the. NET Framework, including stacks, queues, lists, arrays, and structs.

讨论.NETFramework提供各种集合类型包括堆栈队列列表数组结构

For our purposes, the domain model is a set of C# types (classes, structs, and so on), collectively known as the domain types.

为此目标模型C#类型布局等等),统称类型

Classes and structs that are not nested within other classes or structs can be either public or internal.

没有嵌套其他结构结构可以公共可以内部

You can use Rational modeling extension to model various types, including classes, structs, delegates, and enumerations, among others.

可以使用Rational扩展各种类型其中包括结构委托枚举

Defines partial classes, structs, and interfaces throughout the same compilation unit.

整个同一编译单元定义分部结构接口

When defining structs, you want to make sure that you are creating types that are readable.

定义struct确保创建类型

They can be public or internal, like the classes and structs themselves.

结构自身一样它们可以公共内部

In C#, you (as a developer) can define generics for classes, interfaces, structs, delegates, and methods.

C#作为一名开发员可以定义类型结构代表方法通用类型

The volatile bean pattern is applicable in frameworks that use JavaBeans as "glorified structs. "

volatilebean模式适用JavaBeans作为荣誉结构使用框架

Defines partial classes and structs throughout the same assembly.

整个同一程序集中定义分部结构

For structs, it will return each member of the struct initialized to zero or null depending on whether they are value or reference types.

对于结构关键返回初始化为每个结构成员具体取决于这些结构类型引用类型

However, like reference types, structs can implement interfaces.

引用类型相同结构可以实现接口

Unlike classes, structs can be instantiated without using the new operator.

不同结构实例化可以使用new运算

No matter what the problem is, the solution will always boil down to macros, pointers, structs, arrays, and functions.

不管什么问题解决方案总是归结指针结构数组函数

Classes and structs can be restricted so that only the program or namespace they are declared in may use them.

可以限制结构以便只有声明它们程序命名空间才能使用它们

Both classes and structs can define constructors that take parameters.

structs可以定义具有参数构造函数

Structs can implement an interface but they cannot inherit from another struct.

结构可以实现接口它们无法继承另一个结构

It also covers the important differences between classes and structs.

涉及结构之间重大差异

All it really offers is macros, pointers, structs, arrays, and functions.

实际提供全部指针结构数组函数

Classes and structs have members that represent their data and behavior.

结构具有表示数据行为成员

for structs, but the debate over how to treat union members of structs caused the proposal to be shelved.

建议但是关于如何对待结构联合成员讨论导致建议搁置

All structs inherit directly from System. ValueType, which inherits from System. Object.

所有结构直接继承System.ValueType,后者继承System.Object。

JSON is a JavaScript native form for serializing arrays and structs.

JSON序列化数组结构JavaScript形式

Arrays and structs may not be compared to anything.

数组结构可能不会任何数组进行比较

Classes and structs can inherit from more than one interface.

结构多个接口继承

Returns an array of structs corresponding to recent blog posts.

返回一个最近博客文章对应结构数组

Events are used on classes and structs to notify objects of occurrences that may affect their state.

事件结构用处通知某些对象——这些对象状态可能事件发生影响

The following example shows that you can also develop partial structs and interfaces.

下面示例可以看出可以开发分部结构接口

You can change the behavior of operators for custom classes and structs.

对于定义结构可以更改运算符行为

There is no inheritance for structs as there is for classes.

对于结构那样存在继承

Classes and structs can declare constants as members.

结构可以常数声明成员

This sample presents the syntax and usage of structs.

示例介绍结构语法用法

New data types are defined using classes and structs.

数据类型使用结构定义

Fixed size buffer fields may only be members of structs.

固定大小缓冲区字段只能结构成员