Problem : I’d like to have a method that transforms the first character of a string into lower case. My […]
Tag: c#
How to make streams from BLOBs available in plain old C# objects when using SqlDataReader?
Problem : This is the scenario: We store files, e.g. relatively large documents (10-300MB), in blobs in our MSSQL database. […]
Should I catch all possible specific exceptions or just general Exception and wrap it in custom one?
Problem : Let’s say I want to deserialize some XML file to a strongly typed object. In case this XML […]
Changing connection string at runtime in Enterprise Library
Problem : Is there a way to change the connection string of a DataBase object in Enterprise Library at runtime? […]
Difference between Request.Cookies and Response.Cookies
Problem : I use both of these many times in my code and don’t really know what the difference is […]
Why Finalize method not allowed to override
Problem : I am new to .net ..and i am confused with the destructor mechanism in C# ..please clarify In […]
How to read a WebClient response after posting data?
Problem : Behold the code: using (var client = new WebClient()) { using (var stream = client.OpenWrite(“http://localhost/”, “POST”)) { stream.Write(post, […]
The || (or) Operator in Linq with C#
Problem : I’m using linq to filter a selection of MessageItems. The method I’ve written accepts a bunch of parameters […]
how can I convert IQueryable to string?
Problem : I do a sql query which returns a string – service name. this is the query: IQueryable<string> query […]