I am a developing an application with different text boxs that I am passing to oracle stored procedure using ASP.NET ( c# ). For each textbox there is a property in a class file. When I pass empty textbox it is throwing an error. This is because that a varchar2 field in oracle is not accepting "null".
Private string _fristName;
public string FirstName
{
get { return _fristName; }
set { _fristName= value; }
}
Which is best practice for making _fristName as string.empty or "" ?
string.Emptyrather than"". After .Net 2.0, they are exactly the same. However, as far as readability is concerned, most programmers would agree thatstring.Emptyis more pleasant to read.