Quantcast
Channel: A Programmer with Microsoft tools » quiz
Browsing all 4 articles
Browse latest View live

C# quiz

Fast small quiz for sunny afternoon : What is writing at the console those lines : ( please do not use a compiler) : decimal? v = 100; Console.WriteLine(v); decimal? x = null; x += v.Value;...

View Article



Find the Error

This code was written by me, in a late night moment, when copy paste seems the best option It started this way : public string ImportFeed(string URL) { string ret = ""; XmlDocument xd = new...

View Article

path.combine idiosyncrasies

I have this small program : var s = Path.Combine(@"E:\andrei", UnknownVar); Console.WriteLine(Directory.GetFiles(s).FirstOrDefault()); In what conditions , if I have an “C:\andrei” folder with a single...

View Article

Some code

What you do not like about this code ? ( I have found 3 things – how many can you find?) public static MyNewDocument  OpenDocument(string FileDocPath , out int codeError) { if...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images