Archive for the ‘Tips’ Category

Static Constructors

Posted: September 27, 2010 in Tips
Tags: ,

Salam Alikom, A static constructor executes once per type, rather than once per instance (Like Instance Constructors). A type can define only one static constructor, and it must be parameterless and have the same name as the type: class Test { static Test() { Console.WriteLine (“Type Initialized”); } } The runtime automatically invokes a static [...]

Stack VS Heap

Posted: September 26, 2010 in Tips
Tags: , ,

Salam Alikom , The stack and the heap are the places where variables and constants reside. Each has very different lifetime semantics. Stack The stack is a block of memory for storing local variables and parameters. The stack logically grows and shrinks as a function is entered and exited. Consider the following method (to avoid [...]

Queries Processing

Posted: September 21, 2010 in Tips
Tags: , , , ,

Salam Alikom , I will Explain in this post how Query  processing Works .. so i will start with Example: if we have a Database with 2 tables : we will consider that you have a parser to build a tree  From Given Query.. each node in the tree will contains 3 values : 1.Node value: [...]

Salam Alikom Why we use Serialization ? To persist object data . Steps to serialize Or deserialize : 1. adding these namespaces : using System.IO; using System.Xml.Serialization; 2. Writing [Serializable] before any class that you want to serialize. Ex.: [Serializable] public class ClassName { //class members } *your class should be public *don’t put it [...]

Salam Alikom , If any one likes BI field and he/she likes to know the history of BI … i think this video will help him Salam Alikom

MPI.NET From (INDIANA Univ)

Posted: September 20, 2010 in Tips
Tags: , ,

Salam Alikom , while i was searching to write parallel Programs using MPI in C# i found “MPI.NET” library , when i saw any term contains “.NET” .. i feel happy becuase i like .NET very much , In otherwise i hate c++ very very much , MPI.NET supports MPI with ease implementation using All [...]