I do a alot SQL statements, these statements require alot of quoted
strings. to this end I have a small one line routine:
private string QuotedStr(string Value)
{
return "'"+Value+"'";
}
I usel this function many , many times.
the probem I have is I need to write this small function (along with others)
in each class, web form, etc I use.
I would really like to write this in one class and use it ervery place. I
looked into static functions, but you land up referenceing the function by
MyClass.QuotedStr(). well this is alittle better but,
I guess what I am looking for is a way to globalize this function. It would
be great if I could some how just add it to the string class, anyway any
ideas would be appriciated.
Phil.