Monday, 21 October 2013 0 comments

Processes in C#

Processes in C#

Here is the C# Process Class. You can get Running Process info and More.


Click Here to Download Program
0 comments

C# File Info Class

C# File Info and Right Class

Here is the C# File Info Program. You can get File info and Rights through this.


Click Here to Download Program
0 comments

C# XML Serialization

C# XML Serialization

Here is the C# XML Class Program. If you have any query contact me.


Click Here to Downlaod
Thursday, 10 October 2013 0 comments

C# Dictionary Class

C# Dictionary Class

Here is the C# Dictionary Class Definition and Example.

Dictionary Class

The Dictionary class gives us the opportunity to map some values to specific keys; in real life scenarios we need this mechanism to represent some values whenever we call the key associated with them according to an event.


Click Here to Downlaod Program
0 comments

C# Operator Overloading

C# Operator Overloading

Here is the C# Operator Overloading Defination and Example.

Operator Overloading Details


In an object oriented programming language like C#, operator overloading provides a much more natural way of implementing the operations on custom types. Suppose that we have a class created for Complex number and we want to perform all the arithmetic operations on this type. One way to do this is by having functions like Add, Subtract inside the class and have the functionality. Another way is to actually have the overloaded version of operators to act on this type.
Operator overloading provides a much natural abstraction for the types. When we think about possible operation on some data type we can think of binary operators, unary operators, relational operators and perhaps some conversion operations to and from the basic types. In C# achieving all this is possible using operator overloading.

Using the code

Before looking at the implementation details, lets see what are the conventions that need to be followed if we want to overload an operator.
  • The operator function should be a member function of the containing type.
  • The operator function must be static.
  • The operator function must have the keyword operator followed by the operator to be overridden.
  • The arguments of the function are the operands.
  • The return value of the function is the result of the operation.
Click Here to Download Program
Wednesday, 2 October 2013 0 comments

C# Data Compression

C# Data Compression

Here is the C# Data Compression Defination and Example. It is not provided by any Faculty of APTECH. This is uploaded by me after searching on Internet.

Data Compression is the File Compression Method in C# which is used to Compressed and Encrypt File.


Click Here to Download Data Compression Program

Note : If you have Any Query Just Ping Me :)
0 comments

C# Serialization

C# Serialization

Here is the C# File Handling Defination and Example. It is not provided by any Faculty of APTECH. This is uploaded by me after searching on Internet.


Serialization is a process of taking an object and converting into a form so that it can be transported across the network or can be persisted in the storage location. This storage location can be physical file, database or ASP.NET Cache. The form contains the state of the object so that by this format, we can construct the same object a later point in time, which is called Deserialization.

Some good uses for serialization/deserialization include: 
  1. Storing user preferences in an object.
  2. Maintaining security information across pages and applications.
  3. Modification of XML documents without using the DOM.
  4. Passing an object from on application to another.
  5. Passing an object from one domain to another.
  6. Passing an object through a firewall as an XML string. 

    Click Here to Download Serialization Program
0 comments

C# File Handling

C# File Handling

Here is the C# File Handling Defination and Example. It is not provided by any Faculty of APTECH. This is uploaded by me after searching on Internet.

File Handling is the way to save  your desire  data permanently  to file outside your program.

References : 
http://www.c-sharpcorner.com/uploadfile/puranindia/file-handling-in-C-Sharp/

Click Here to Download File Handling Program



0 comments

C# Delegates

C# Delegates

Here is the C# Delegate Defination and Example. It is not provided by any Faculty of APTECH. This is uploaded by me after searching on Internet.


Delegate is a type which  holds the method(s) reference in an object. It is also referred to as a type safe function pointer.

Advantages

  • Encapsulating the method's call from caller
  • Effective use of delegate improves the performance of application
  • Used to call a method asynchronously

References : 

Click Here to Download Class Delegates Program
1 comments

C# Enum

C# Enum

Here is the C# Enum Defination and Example. It is not provided by any Faculty of APTECH. This is uploaded by me after searching on Internet.


Enums store special values. They make programs simpler. If you place constants directly where used, your C# program becomes complex. It becomes hard to change. Enums instead keep these magic constants in a distinct type.
using System;

class Program
{
    enum Importance
    {
 None,
 Trivial,
 Regular,
 Important,
 Critical
    };

    static void Main()
    {
 // 1.
 Importance value = Importance.Critical;

 // 2.
 if (value == Importance.Trivial)
 {
     Console.WriteLine("Not true");
 }
 else if (value == Importance.Critical)
 {
     Console.WriteLine("True");
 }
    }
}
Reference :


Click Here to Download My C# Enum Program
 
;