Curtis Rutland's Profile User Rating: *****

Reputation: 4988 Guru
Active Posts:
9,161 (4.25 per day)
08-June 10
Profile Views:
Last Active:
User is offline Today, 01:12 PM

Previous Fields

OS Preference:
Who Cares
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
Expert In:
C#, LINQ, Dynamics CRM

Latest Visitors

Icon   Curtis Rutland has been promoted!

Posts I've Made

  1. In Topic: Values of arrays changes without a "return" statement

    Posted 2 May 2016

    The OP was asking for explanation of a behavior, not re-written code (and I have no idea what you were going for with that code).
  2. In Topic: Global Hotkeys

    Posted 30 Apr 2016

    You have to pass it an IWin32Window. That component must be the one that overrides the WndProc method with the correct code. The reason for this is that the global hotkey is implemented via the Windows Message Pump, so you can't just create this hotkey from a static class without having an instantiated IWin32Window (typically a Form).
  3. In Topic: Values of arrays changes without a "return" statement

    Posted 29 Apr 2016

    To expand a bit on what Modi has mentioned:

    There are two types of objects: reference types, and value types. Reference types are types defined by a class, while value types are defined by a struct.

    There are several differences, but the major one is the behavior when passing these objects around.

    With a value type (and most of the C# "primitives" are value types), when you pass it to a method, you're looking into the memory that holds that object, then copying the data from there into a new memory cell that the method can operate on. Therefore, there is no connection between the variable you pass into a method and the one in the method, except the value itself.

    Examples of some common value types: bool, int, long, float, double, decimal, DateTime, TimeSpan, ...

    With a reference type (this includes strings, though strings are immutable), the variable's memory is actually more complicated: the variable is just a small block of memory that holds another memory address. That address points to the larger block of memory that actually holds everything about that object instance.

    So, when you call a method with a reference type parameter, the memory address itself is copied into the function parameter. So, when you modify any property of the object (and that includes elements in array indexes), the modification isn't "copied back" to the original; you've actually directly modified the original. They both point to the same memory.

    Some common reference types: string, object, any custom class you create, etc...

    On the other hand, if you were to do something like this:

    public static void Main(string[] args) {
        var arr = new[] {1, 2, 3};
    public static void ModifyArray(int[] arr)
        //this is the difference right here:
        arr = new [] { 2, 3, 4};

    What do you think the output of that is? Well, it's tricky. If I had just modified the incoming parameters' indexes, the change would be reflected back on the original. But I reassigned the entire variable. What I did there was wipe out the old address and write a new address for a new array. That wouldn't affect the original, since we copied the address out of it into the new parameter, then overwrote that address with another in the parameter.
  4. In Topic: Returning a list from a collection (Lambda expression?)

    Posted 29 Apr 2016

    LINQ is one way of doing it. But I believe you can bind the entire set of objects to the combobox, and provide a binding path to describe what property the combobox should use to display, and what property should be treated as the "value" of the combobox.
  5. In Topic: Jagged array error

    Posted 26 Apr 2016

    I wouldn't bother continuing those tutorials if they're giving you bad advice.

My Information

Member Title:
(╯□)╯︵ (~ .o.)~
31 years old
August 29, 1984
San Antonio
Forum Leader:
Full Name:
Curtis Rutland
Years Programming:
Programming Languages:
C# -- Forms, WPF, Silverlight, WCF

Contact Information

Click here to e-mail me
Website URL:
Website URL
Skype  insertAlias_bytes


  • (2 Pages)
  • +
  • 1
  • 2
  1. Photo

    ali aqsa Icon

    14 Mar 2016 - 08:07
    do u know how to set a path of vb6 project in window 8
  2. Photo

    Curtis Rutland Icon

    13 Jan 2016 - 10:33
    Please don't try to email me. Make a post in the forum. If it's about a post, click the "Report" button.
  3. Photo

    CodeAvenger1234 Icon

    13 Jan 2016 - 10:09
    I am trying to contact you about a post, but I click on your email above and it says I cannot send you an email. Is there another way to contact you?
  4. Photo

    NewRandomUsername Icon

    06 Jun 2014 - 20:59
    Did you get my messages(emails) sir?
  5. Photo

    BenignDesign Icon

    03 May 2013 - 13:29
    I see you were staring at my profile. I also stare randomly at profiles. We have much in common. We should probably hook up sometime. Just sayin.
  6. Photo

    eric wallace Icon

    31 Jan 2013 - 02:53
    can you help for visual basic
  7. Photo

    no2pencil Icon

    06 Dec 2012 - 08:34
    It still isn't good enough.
  8. Photo

    ikram002p Icon

    27 Jun 2012 - 10:51
    "It Doesn't Work!" That's not good enough!
    It Still Doesn't Work!.
    I didnt undestand it ??
  9. Photo

    tlhIn`toq Icon

    18 Mar 2012 - 11:22
    Congrats on breaking 3000
  10. Photo

    Curtis Rutland Icon

    08 Sep 2011 - 14:13
    "Leveling up." I like that!
  11. Photo


    08 Sep 2011 - 13:55
    Yar ya see, i remember when yee wer purple!
    Anyways congrats! It's weird seeing people who've been one way so long "leveling up" :P.
  12. Photo

    Curtis Rutland Icon

    08 Sep 2011 - 12:59
  13. Photo

    Sergio Tapia Icon

    08 Sep 2011 - 12:29
    Congrats on becoming a mod. :D
  14. Photo

    Ace26 Icon

    15 Jun 2011 - 13:39
    Hi mate, interesting to see we are age mates. Nice work you do in the forums.
    Just dropped by to say hi, anyways.
  15. Photo

    RetardedGenius Icon

    20 Apr 2011 - 18:56
    Excellent C# tutorials, they've taught me a lot I didn't know. Please keep more of the good stuff coming! :D
  • (2 Pages)
  • +
  • 1
  • 2