Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# multiple strings are empty

string parameter1 = "a", parameter2 = "a", parameter3 = "a";

// using System.Linq;
if (new[] { parameter1, parameter2, parameter3 }.All(parameter => !string.IsNullOrEmpty(parameter)))
{
	// parameters have text
}
else
	// parameters were empty or null
Comment

PREVIOUS NEXT
Code Example
Csharp :: generate random dark colors programatically in android 
Csharp :: c# remove char from string 
Csharp :: unity text custom color 
Csharp :: how to get total scenes unity 
Csharp :: minimize window windows forms application c# 
Csharp :: how to deserialize string array in c# 
Csharp :: copy class c# 
Csharp :: how to get previous page url aspnet core 
Csharp :: c# tell if list object is empty 
Csharp :: how to print statement in c# 
Csharp :: mongodb driver c# nuget 
Csharp :: c# add element to array 
Csharp :: c# right function 
Csharp :: linq query get last day of month 
Csharp :: how to get row index of selected row in gridview asp.net webforms 
Csharp :: Read a Word Document Using C# 
Csharp :: C# clear form 
Csharp :: msbuild publish to folder command line .net 
Csharp :: excel isrlgood 
Csharp :: simple code to call rest api c# 
Csharp :: c# directory file 
Csharp :: returning multiple values in C# 
Csharp :: adding a dependency injection service in windows forms app 
Csharp :: c# timer 30 seconds 
Csharp :: c# xml comment type reference 
Csharp :: instantiate prefab unity 
Csharp :: return an interface or a class C# 
Csharp :: c# datetime remove days 
Csharp :: add list to list c# 
Csharp :: c# substring reverse 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =