Problem : I have been trying to follow some WCF Data Services examples and have the following code: private void […]
Category: .Net Code
Understanding the behavior of TaskScheduler.Current
Problem : Here’s a simple WinForms app: using System; using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApplication { […]
How to use c# Dll in vc++?
Problem : I have created a dll using command line (csc). Suppose that dll contains Add(int,int) method. Now I want […]
How to compare time part of datetime
Problem : Let’s say we have DateTime t1 = DateTime.Parse(“2012/12/12 15:00:00.000”); and DateTime t2 = DateTime.Parse(“2012/12/12 15:03:00.000”); How to compare […]
How to get XML with header (
Problem : Consider the following simple code which creates an XML document and displays it. XmlDocument xml = new XmlDocument(); […]
How to set and delete cookies from WebBrowser Control for arbitrary domains
Problem : How can I set and delete cookies for a domain in webbrowser control without using Javascript (which doesn’t […]
Should I be worried about obfuscating my .NET code? [closed]
Problem : Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the […]
Is a Java package the equivalent of a .Net assembly?
Problem : I am a .Net developer starting Java development for Android and would like to know if it’s correct […]
Intercept SQL statements containing parameter values generated by NHibernate
Problem : I use a simple interceptor to intercept the sql string that nhibernate generates for loging purposes and it […]
Why is there no RAII in .NET?
Problem : Being primarily a C++ developer the absence of RAII (Resource Acquisition Is Initialization) in Java and .NET has […]