Introduction to Visual Web Developer 2008 Express Edition C# (WebDev1)

Introduction to Visual Web Developer 2008 Express Edition C# (WebDev1)To start, one needs to establish a web site. In establishing a beginning web site I was very conservative, and declared it (by browsing) to be C:Inetpubwwwroot which is the root of the IIS based server running on my desktop machine. I know, one can put these anywhere, but from the point of view of testing this using another computer (a Linux box also on my (physical) desktop ) this is the absolutely simplest solution, i.e., appropriate for beginners. I also choose C# as my language of choice.
Read more

Translating from C++ to C#

Translating from C++ to C#The first thing to notice is that there are no #include statements in the C# code. That is because the project itself keeps track of the files that are needed, this is the meta statements that we can’t see and don’t need to care about. The next thing to note is that in C# there are no functions: everything is a method in a class or an object. Thus even Main has to be a method and so we declare a class Program. Remark that Main() is declared to be a static method so we do not need to instantiate the class Program. Since Main() is where the program begins we would not be able to instantiate any class before Main() has been called.
Read more

VB.NET and C# Comparison

VB.NET and C# ComparisonVB.NET
‘ String concatenation (use & or +)
Dim school As String = “Harding” & vbTab
school = school & “University” ‘ school is “Harding (tab)
University”
‘ Chars
Dim letter As Char = school.Chars(0) ‘ letter is H
letter = Convert.ToChar(65) ‘ letter is A
letter = Chr(65) ‘ same thing
Dim word() As Char = school.ToCharArray() ‘ word holds
Harding
‘ No string literal operator
Dim msg As String = “File is c: empx.dat”

C#
// String concatenation
string school = “Harding “;
school = school + “University”; // school is “Harding (tab)
University”
// Chars
char letter = school[0]; // letter is H
letter = Convert.ToChar(65); // letter is A
letter = (char)65; // same thing
char[] word = school.ToCharArray(); // word holds Harding
// String literal
string msg = @”File is c: empx.dat”;
// same as
string msg = “File is c:\temp\x.dat”;
Read more

Image Processing using Java and C# A Comparison Approach

Image Processing using Java and C# A Comparison ApproachThis paper presents results of a study to compare Java and C# programming languages features in terms of portability, functional programming and execution time. This comparison permits to evaluate both programming languages to know which one has better performance in the image processing area.
Read more

Using Reflection to Reduce the Size of .NET Executables

Using Reflection to Reduce the Size of .NET ExecutablesThis article presents an object-oriented technique for reducing the size of .NET executables. Current binary compressors cannot be used to pack .NET executables because .NET makes use of a specially modified PE file format. We will rely on reflection capabilities supported by .NET to pack .NET binaries using pure C# code. The solution is general and can be used with any .NET executable, no matter in what front-end language it was written.
Read more

Next Page →