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

Reputation: 4918 Guru
Active Posts:
8,970 (4.33 per day)
08-June 10
Profile Views:
Last Active:
User is online 2 minutes ago
Viewing Topic: i need to implement Arraylist (I...

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: Naming convention for constants in C#

    Posted 8 Feb 2016

    I've decided that, to make my life easier (and because it's reasonably sane) that I will take Resharper's naming suggestions by default. If I work on a team that has some particular style, I change them, but R# basically uses Microsoft's guidelines, which I'm happy with.

    I tend to use a fair amount of constants, mainly because R# identifies values that do not change in code and suggests to make them constant. I also work with Dynamics CRM a lot, which involves using "property bag" objects, with a lot of var val = entity["fieldName"]; type of code, so I have lots of "Field Name" constants.

    How do you guys organize your constants in C#? In cases like I just described, I like to make a static class (typically inside the class that's doing the work) called Fields, sometimes actually Constants. How about you guys?


    Lately, I've been seeing more people ignore the meaningful parameter names, specially when using lambdas. ex. (g, k) => { g[k] = 12; } vs. (group, key) => { group[key] = 12; }

    I'm guilty of this sometimes, but it's probably two reasons:

    1. When I was learning, almost every example of a lambda used x => ...
    2. It's shortcut syntax, so it's not that big a logical leap to use shortcut variable names.

    I do try to use letters or short names that make semantic sense. If I have a collection called rows, then my iterator variable will be r. Sometimes I'll write the code with one-letter variable names, then refactor when I'm done to be more descriptive.
  2. In Topic: Send data between pivot

    Posted 5 Feb 2016

    The general concepts are the same. Without seeing your code, I can't give you specific advice, but typically you expose a property or an event to pass data between classes. I'm sure you're binding your ListView to a collection; expose that collection as a property on your Form/Window/Page/Control/whatever. As long as you have a reference to it, you can get it.

    Or expose an event, and pass that data as part of the EventArgs.

    Basically, exactly what the tutorial says.
  3. In Topic: Send data between pivot

    Posted 5 Feb 2016

    Please read this tutorial I wrote about "The Right Way to get Values from Form1 to Form2":


    If you are working in WPF, the concepts are similar, but it's even simpler, since you would just pass DataContext stuff back and forth.
  4. In Topic: Coding GUI C# in other editor?

    Posted 4 Feb 2016

    I think his problem was using drag-drop GUI builders in the first place; not looking for an alternative UI builder.
  5. In Topic: data from excel to sql database?

    Posted 4 Feb 2016

    That's usually why I define almost every table I make to have a numeric, auto-incrementing PK. Unless there's a good reason to make another field the PK, I always do that.

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

    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.
  2. 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?
  3. Photo

    NewRandomUsername Icon

    06 Jun 2014 - 20:59
    Did you get my messages(emails) sir?
  4. 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.
  5. Photo

    eric wallace Icon

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

    no2pencil Icon

    06 Dec 2012 - 08:34
    It still isn't good enough.
  7. 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 ??
  8. Photo

    tlhIn`toq Icon

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

    Curtis Rutland Icon

    08 Sep 2011 - 14:13
    "Leveling up." I like that!
  10. 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.
  11. Photo

    Curtis Rutland Icon

    08 Sep 2011 - 12:59
  12. Photo

    Sergio Tapia Icon

    08 Sep 2011 - 12:29
    Congrats on becoming a mod. :D
  13. 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.
  14. 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
  15. Photo

    Curtis Rutland Icon

    24 Mar 2011 - 14:55
    Yeah, felt like "professionalizing".
  • (2 Pages)
  • +
  • 1
  • 2