Run Command Prompt Commands

this is all you have to do run shell commands from C# EDIT: This is to hide the cmd window. EDIT: 2 Important is that the argument begins with /C otherwise it won’t work. How Scott Ferguson said: it “Carries out the command specified by the string and then terminates.”

Difference between Method and Function?

Both are same, there is no difference its just a different term for the same thing in C#. Method: In object-oriented programming, a method is a subroutine (or procedure or function) associated with a class. With respect to Object Oriented programming the term “Method” is used, not functions.

Categories c# Tags

What is the purpose of global.asax in asp.net

MSDN has an outline of the purpose of the global.asax file. Effectively, global.asax allows you to write code that runs in response to “system level” events, such as the application starting, a session ending, an application error occuring, without having to try and shoe-horn that code into each and every page of your site. You can … Read more

XmlSerializer – There was an error reflecting type

Look at the inner exception that you are getting. It will tell you which field/property it is having trouble serializing. You can exclude fields/properties from xml serialization by decorating them with the [XmlIgnore] attribute. XmlSerializer does not use the [Serializable] attribute, so I doubt that is the problem.