netcore use tempdata code example Example: .net core temp directory string result = Path.GetTempPath();