Contents tagged with C#
-
Learning to Like Linq or, Loving the Linq Loquacious
Once upon a time, long, long ago, I was working at a company that gave their engineers some shiny, state-of-the-art, new-fangled HP calculators. They were awesome; instead of battery-draining LEDs for display, they used something called an LCD. And, they had buttons galore: more buttons than any other calculator at that time. We positively drooled at their appearance. They looked something like this:
-
Passing Strings by Ref
Humbled yet again…DOH! No matter how much experience you acquire, no matter how smart you may be, no matter how hard you study, it is impossible to keep fully up to date on all the nuances of the technology we are exposed to. There will always be gaps in our knowledge: Little 'dead zones' of uncertainty. For me, this time, it was about passing string parameters to functions. I thought I knew this stuff cold. First, a little review...
-
Serializing ArrayLists of Disparate Objects to XML Strings
In an earlier post here, I wrote two functions to Serialize and Deserialize objects to XML strings.
-
A ‘Simple’ Asp.Net Custom Server Control
A user on the Asp.Net forums, where I moderate, asked how to list a bunch of files in a directory as hyperlinks on a web page so the user could click on them. I thought this was probably an often performed task and decided create a Server Control to encapsulate it.
-
Can the C# ‘var’ Keyword be Misused?
More and more often I've been seeing C# code like this:
-
How to Fill a ListBox/DropDownList from an Enum
There was a question about this on the Asp.Net forums and after a quick search I didn't find a good generic function so I thought I'd supply one.
-
What’s the Deal with Interfaces?
This post is for beginners.
-
Why goto Still Exists in C#
Developers, Software Engineers, and Programmers are logical, rational, reasonable people right? Sure they are…until you disagree with something they believe in. Then they can become the most enflamed, outraged, foaming-at-the-mouth, intolerant, lunatics you've ever had the pleasure of meeting.
-
Using Session State in a Web Service
Usually, when you think of a Web Service, you think …make the call, get the response, and get on with the task at hand. These "one shot" calls are the norm in Web Services but there may be times when you need a little more. You may need the Web Service to remember states between calls.
-
Master Page, Child Pages: Dynamic Communication Flexibility
Over on the ASP.NET forums, where I am a moderator, a user asked a question concerning Master Pages. I thought it was an interesting enough question to spend a little time on it and write a BLOG entry (golf season hasn't started in my state yet).