Use of unassigned local variable string or string Builder ASP.Net C#

Unassigned local variable Problem can be easily fix when declare the variable and then
initializing the variable

Simple string type varibale:-

string ProductName = string.Empty;

StringBulider type varibale:-
StringBuilder ProductNames=  new StringBuilder()

Related Alrticles

Add Your Business in Free Listing


FREE!!! Registration