6486 2
How to rename a file and directory in C#?

I am working with files and directory in C#, so I would like to know how can I rename a file and directory in C#? I would like to rename file first and then in some cases would have to rename directory also.

I see there is File.Move Method, but is there any other method or way to rename a file and what about Directory, how to rename directory?

...
Type
Question
6426 0
String Interpolation in C# with examples
In this article, I have explained about $ -C# string interpolation and how to use it in C# with console application examples
Type
Article
6423 1
Convert PDF to Image in C# (Console Application Example)
In this article, I have provided sample code to convert PDF file to image using C#, we will be using PDFium library for this.
Type
Article
6379 0
Bundling and Minification in MVC C#
In this article, I will explain how you can implement bundling and minification in your ASP.NET MVC application(step by step) which improves your web-application performance.
Type
Article
6363 0
Understanding Delegates in C# with examples (with Multicast delegate)
This article will help you explain what are the delegates in C# with the example, its advantages and when we should use delegates.
Type
Article


6296 2
How to solve error "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"?

Hello, When I am using below simple C# code to untidy my XML string, but when executing locally it is working fine, but on server I am getting below error

...
Type
Question
6283 0
C# Create OR Generate Word Document using DocX
In this article, I have provided step by step procedure to generate word document using C# and DocX library, which is easy and fast to use.
Type
Article
6265 0
Understanding Unit testing in C# With Example
In this article, I have provided the basics of Unit testing in C# with example and have also explained why it is important to use Unit testing.
Type
Article
6148 2
How to return multiple parameters using web method (web service) in C#?

How can I return multiple parameters of string type using web method (web service) in asp.net C#, here is my current code

...
Type
Question
6085 1
How to show success message in JSON format after saving data using Web-service in C#?

I am trying to save data into database using web service[asmx], after saves successfully data into table I want to show successful message in JSON format 

Here is my code:

...
Type
Question

Page 11 of 24