Answers for "argumentnullexception: Value cannot be null. (Parameter 'path1')System.IO.Path.Combine(string path1, string path2)"

1

system.io Path Combine

namespace: System.IO

//c#

var folder = "C:temp";
var fileName = "note.txt";
var completePath = Path.Combine(folder, filename);
//return: "C:tempnote.txt"

//vb
Dim folder As String = "C:temp";
Dim fileName As String = "note.txt";
Dim completePath As String = Path.Combine(folder, filename);
//return: "C:tempnote.txt"
Posted by: Guest on October-21-2020

Code answers related to "argumentnullexception: Value cannot be null. (Parameter 'path1')System.IO.Path.Combine(string path1, string path2)"

Browse Popular Code Answers by Language