Static Class Properties
A static class cannot be instantiated. That means you cannot create an instance of a static class using new operator.
A static class is a sealed class. That means you cannot inherit any class from a static class.
A static class can have static members only. Having non-static member will generate a compiler error.
A static class is less resource consuming and faster to compile and execute.
Static Class Example
Public static class MyStaticClass
{
Private...
Tuesday, 22 April 2014
Nullable Types in .Net C#

Since .NET version 2.0, the new feature introduce which is nullable types. In the basic programming, how do you assign null to the promitive type such as int, long, and bool. Its is impossible.
The following code shows how to define an integer as nullable type and checks if the value of the integer is null or not.
Example
/// <summary>
/// Nullable types
/// </summary>
public static void TestNullableTypes()
{
...
Friday, 4 April 2014
How to enable GZip or Deflate on ASP.NET(HTTP Compression)
HTTP compression is a capability that can be built into web servers and web clients to make better use of available bandwidth, and provide greater transmission speeds between both.
HTTP data is compressed before it is sent from the server: compliant browsers will announce what methods are supported to the server before downloading the correct format; browsers that do not support compliant compression method will download uncompressed data. Compression as defined in RFC 2616 can be applied to the response data from the server...
Tuesday, 1 April 2014
Basics of .NET Programs and Memory Management
.NET has made a lot of improvements in its core to enhance the performance of an application. It is the first solid-core environment that really connects to all parts of the technology for developers. Inorder to make solid footsteps in the .NET environment, it would be great to know about the basic advantages and also the architecture of the .NET environment that you are going to start working on.
The most important infrastructural component...
|
Mohd Zulkamal Founder of developersnote.com, love programming and help others people. Work as Software Developer. Graduated from UiTM and continue study in Software Engineering at UTMSpace. Follow him on Twitter , or Facebook or Google+ . |
Powered by Blogger.