string s = "SOME_LONG_AND_NASTY_STRING_PROBABLY_A_BASE64_STRING"; WriteToDB(s); public void WriteToDB(string str){ InsertInDB(str); } public void InsertInDB(string str) { //Do writing here using str }
string s = "SOME_LONG_AND_NASTY_STRING_PROBABLY_A_BASE64_STRING"; WriteToDB(()=>s); public void WriteToDB(Func<string> f_str){ InsertInDB(f_str); } public void InsertInDB(Func<string> f_str) { //Do writing here using f_str() }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)