Format:
Recent snippets matching tags of WTF
// Take into account exceptions might occur try { // some code here that's less funny ;-) } // Process exceptions catch (Exception ex) { }
285 Views
1 comments
//doesn't close connection var tags = String.Join(",", criteria.Tags.Select(t => t.SID.ToString()).ToArray()); cmd.Parameters.Add(new SqlParameter("@tags", tags)); //doesn't close connection var parm = new SqlParameter("@tags", String.Join(",", criteria.Tags.Select(t => t.SID.ToString()).ToArray())); cmd.Parameters.Add(parm); //CLOSES THE CONNECTION?! cmd.Parameters.Add(new SqlParameter("@tags", String.Join(",", criteria.Tags.Select(t => t.SID.ToString()).ToArray())));
177 Views
no comments
public class SomeController { private static SomeController instance; public SomeController(){} /// <summary> /// Gets the instance. /// </summary> /// <returns></returns> public static SomeController GetInstance()
177 Views
1 comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
