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

阅读数 416

评论数 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

阅读数 545

评论数 0


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

阅读数 703

评论数 0


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

阅读数 423

评论数 0


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

2012-07-29 18:56:28

阅读数 603

评论数 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

阅读数 369

评论数 0


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

阅读数 652

评论数 0


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

阅读数 430

评论数 0


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

阅读数 467

评论数 0


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

阅读数 535

评论数 0


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

阅读数 481

评论数 0


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

阅读数 1038

评论数 0


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

阅读数 771

评论数 0


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

阅读数 908

评论数 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

阅读数 2016

评论数 0


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

2012-07-28 11:43:31

阅读数 5209

评论数 0


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

阅读数 851

评论数 0


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

阅读数 660

评论数 0


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

阅读数 469

评论数 0


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

阅读数 515

评论数 0

取消 删除