.NET Fiddle

CSharp · Console

/Program.cs

using System;

public class Program
{
	public static void Main(string[] args)
	{
		string input = "";
		string input2 = "Обычный текст.";
		
		Console.WriteLine($"ДО ---> input={input}; input2={input2};");
		
		DefaultValue(ref input);
		
		Console.WriteLine($"ПОСЛЕ ---> input={input}; input2={input2};");
	}
	
	public static bool DefaultValue (ref string str)
	{
		if (string.IsNullOrEmpty(str)) {
			str = "N/A";
			return true;
		}
		
		return false;
	}
}
;