SlimApp

好泛滥

C#的null关键字

The null keyword is a literal that represents a null reference, one that does not refer to any object. null is the default value of reference-type ...

2012-07-31 20:24:10

阅读数:387

评论数:0

Nullable Types (C# Programming Guide)

Nullable types are instances of the System.NullableT> struct. A nullable type can represent the correct range of values for its underlying value...

2012-07-31 20:20:20

阅读数:509

评论数:0

C#的zip库-notnetzip

DotNetZip - Zip and Unzip in C#, VB, any .NET language DotNetZip is an easy-to-use, FAST, FREE class library and toolset for manipulating zip files ...

2012-07-31 18:02:39

阅读数:667

评论数:0

C#的event关键字

The following example shows how to declare and raise an event that uses EventHandler as the underlying delegate type. For the complete code example...

2012-07-30 20:02:39

阅读数:396

评论数:0

C#中的interface

Interfaces (C# Programming Guide) Interfaces are defined using the interface keyword. For example: C# interface ICom...

2012-07-29 18:56:28

阅读数:565

评论数:0

Explicit Interface Implementation

If a class implements two interfaces that contain a member with the same signature, then implementing that member on the class will cause both inte...

2012-07-29 18:49:59

阅读数:338

评论数:0

C#的interface关键字

An interface contains only the signatures of methods, delegates or events. The implementation of the methods is done in the class that implements t...

2012-07-29 18:47:06

阅读数:578

评论数:0

C#的abstract关键字

The abstract modifier indicates that the thing being modified has a missing or incomplete implementation. The abstract modifier can be used with clas...

2012-07-29 18:14:01

阅读数:398

评论数:0

C#的Virtual关键字

The virtual keyword is used to modify a method or property declaration, in which case the method or the property is called a virtual member. The impl...

2012-07-29 18:08:05

阅读数:434

评论数:0

C#的New关键字和Override关键字对比

Knowing When to Use Override and New Keywords (C# Programming Guide) In C#, a method in a derived class can have the same name as a method in ...

2012-07-29 13:07:07

阅读数:500

评论数:0

C#的override关键字

override (C# Reference) The override modifier is required to extend or modify the abstract or virtual implementation of an inherited method,...

2012-07-29 13:05:53

阅读数:435

评论数:0

C#中的弱引用

Weak References The garbage collector cannot collect an object in use by an application while the application's code can reach that object. ...

2012-07-29 12:32:56

阅读数:979

评论数:0

C#中比较引用类型是否相等

Comparing reference Types for equality You might be surprised to learn thatSystem.Object defines three different methods for comparing objectsfor e...

2012-07-28 14:06:47

阅读数:718

评论数:0

C#的基本类型的封箱(boxing)与拆箱(unboxing)

boxing and unboxing In Chapter 2, “Core C#,” you learned that all types, both the simple predefined types such as int and char,and the complex typ...

2012-07-28 13:57:34

阅读数:857

评论数:0

NGUI中如何创建模式窗口(Modal Window)

问: I would like to know how you would go about having a dialog pop-up and disabling all inputs from other widgets behind this dialog? For exa...

2012-07-28 11:58:07

阅读数:1971

评论数:0

Unity中如何从jpg或png文件创建Texture2D

使用Texture2D的LoadImage方法即可实现从jpg或png文件创建Texture2D。经验证,当发布的目标平台为iOS时,此方法也是有效的。 function LoadImage (data : byte[]) : boolean Description ...

2012-07-28 11:43:31

阅读数:4641

评论数:0

BackgroundWorker的使用例子-下载文件

How to: Download a File in the Background The following code example demonstrates how to use a BackgroundWorker component to load an XML fil...

2012-07-26 23:44:59

阅读数:760

评论数:0

C#中的typeof关键字

Used to obtain the System.Type object for a type. A typeof expression takes the following form: System.Type type = typeof(int); ...

2012-07-26 23:18:27

阅读数:506

评论数:0

C#的is关键字

Checks if an object is compatible with a given type. For example, it can be determined if an object is compatible with the string type like this: ...

2012-07-26 23:13:06

阅读数:435

评论数:0

C#中的as关键字

The as operator is used to perform certain types of conversions between compatible reference or nullable types. For example: C# ...

2012-07-26 22:43:00

阅读数:496

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭