News

In Visual Basic I'd write this: If stringVariable IsNot Nothing then Dim x as Integer x = stringVariable.Length End If I test the string for null/nothing because if I try to get the Length of a ...
So I have a method:<BR><BR><pre class="ip-ubbcode-code-pre">int Foo()</pre><BR><BR>It either returns a value if successful or NULL if not. If I'm not mistaken, if I ...
Title says it all. I'm trying to get the type of a class from a string and the runtime cannot locate the class. I've tried several approaches, but they all return null. I'm not a C# expert and so I ...