Search:

Type: Posts; User: itsme86

Page 1 of 20 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    2
    Views
    6,956

    You can use Activator.CreateInstance(): ...

    You can use Activator.CreateInstance():



    result = (T)Activator.CreateInstance(typeof(T), new object[] { Context });
  2. Replies
    2
    Views
    6,491

    2/3 of your question is discussing how you got to...

    2/3 of your question is discussing how you got to this site. The remaining 1/3 is very broad. Do you know about Html.DropDownListFor()? Do you know how to read data from your database? Do you know...
  3. Replies
    6
    Views
    7,508

    The "object" type can contain any reference or...

    The "object" type can contain any reference or value type so...


    object FuncThatCanReturnIntDoubleOrString() { }
  4. Replies
    6
    Views
    7,508

    What? More words...

    What? More words...
  5. Is "no crossposting" still a thing? Read each...

    Is "no crossposting" still a thing? Read each line in a text file when I press a key? C programming - Stack Overflow
  6. Replies
    6
    Views
    4,336

    Not enough blank lines. You should have no fewer...

    Not enough blank lines. You should have no fewer than 13 blank lines separating every line of code. In all seriousness though, if you clean up your code (remove extraneous blank lines and fix...
  7. Thread: structs in C#

    by itsme86
    Replies
    7
    Views
    11,106

    It tells you right in that snippet that I quoted:...

    It tells you right in that snippet that I quoted:




    Not sure what you mean. Instantiating the structs in an array? It doesn't matter if they're in an array or not. The snippet from MSDN still...
  8. Thread: structs in C#

    by itsme86
    Replies
    7
    Views
    11,106

    Come on, man. This is really easy to google. ...

    Come on, man. This is really easy to google.

    Using Structs (C# Programming Guide)
  9. Winning? You mean "steadily declining over time"....

    Winning? You mean "steadily declining over time". Sure, Java was hugely popular in the 90s, but it has been falling in popularity over the last 10 years. The idea that it's taking over anything is...
  10. Didn't you ask this exact same question last...

    Didn't you ask this exact same question last week?

    You can just use string.IndexOf():



    int res = txt.IndexOf(phrase);
  11. I'd avoid a regex match just because the phrase...

    I'd avoid a regex match just because the phrase might unintentionally end up with regex special characters and skew the results.

    There is a really easy way to do this in C# though:



    int res...
  12. Replies
    3
    Views
    5,747

    What? What types are you dealing with? You need...

    What? What types are you dealing with? You need to give more detail.
  13. Replies
    2
    Views
    5,096

    What's DBLabControllers.dll? What line in the...

    What's DBLabControllers.dll? What line in the code you pasted is in the stack trace for the exception?
  14. You'll probably want to research microsoft word...

    You'll probably want to research microsoft word interop.

    Also, if you're new to c#, you might want to consider upgrading to Visual Studio 2015. The Community version is free if that's a concern.
  15. Replies
    6
    Views
    4,636

    Why aren't you just using a List instead...

    Why aren't you just using a List<object> instead of an array, which already does what you're trying to do?
  16. That sucks. If you ask a question, explaining...

    That sucks.

    If you ask a question, explaining exactly what difficulty you're having, someone might be able to help you.
  17. That sentence doesn't make sense. By definition,...

    That sentence doesn't make sense. By definition, a hardcoded password cannot be read from an external source. I'm very confused by your requirements.
  18. Replies
    3
    Views
    3,730

    To emulate a 2-dimmensional array, you can create...

    To emulate a 2-dimmensional array, you can create a list of lists:



    List<List<myData>> data = new List<List<myData>>();


    You'll have to create a new list for each outer list. For example:
  19. Replies
    3
    Views
    7,101

    It looks like you have a space or some other...

    It looks like you have a space or some other non-printable character in your api key...
  20. Replies
    3
    Views
    5,978

    You can't make it so the DLL requires #includes...

    You can't make it so the DLL requires #includes to work. I'm not even really sure what you mean by that. #include files don't contain C# code, so how would C# be able to use them?

    Can you give an...
  21. Thread: Psuedocode

    by itsme86
    Replies
    33
    Views
    10,449

    Did you not actually read the multiple replies on...

    Did you not actually read the multiple replies on the first page of this thread telling you not to put the space in? How are you still confused about this?
  22. Replies
    2
    Views
    5,221

    First of all, that's a really nutso query. Can't...

    First of all, that's a really nutso query. Can't it just be simplified down to:



    select ButtonNum, Description from StationSetup where ButtonNum in (1,2,3,4,5,6,7,8) order by ButtonNum

    ...
  23. Replies
    3
    Views
    4,180

    The HashSet...

    The HashSet<T> type can certainly assist you with that. Duplicate additions will automatically be discarded so you can simply load the initial 30k words into the object and then add the next 70k...
  24. Thread: Psuedocode

    by itsme86
    Replies
    33
    Views
    10,449

    I'm not talking about ParseLineIn() specifically....

    I'm not talking about ParseLineIn() specifically. Your ValidateDate() method has the erroneous spaces in the regex string as well.


    You speak as if not only did you not write that method, but you...
  25. Thread: Psuedocode

    by itsme86
    Replies
    33
    Views
    10,449

    You put spaces in the regex string for some...

    You put spaces in the regex string for some reason. That makes the match something totally different.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4