Search:

Type: Posts; User: Momerath

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,965

    This isn't the code you are running, it won't...

    This isn't the code you are running, it won't even compile. Given that, you are telling it to convert a List<T> into a string. Remember, the 'list' variable is an array of List<T>, so 'list[1]' is...
  2. Replies
    1
    Views
    1,305

    Stack contains a constructor that has an...

    Stack<T> contains a constructor that has an IEnumerable as a parameter. Just your luck, Queue<T> implements the IEnumerable interface.
  3. Replies
    3
    Views
    1,402

    Yes, sort of. By default Visual Studio includes...

    Yes, sort of. By default Visual Studio includes references to the most common set of objects, but you may have to add references (right click on references in solution explorer) to some of the DLLs....
  4. Replies
    4
    Views
    3,200

    First an Int32 is 4 bytes long. You are only...

    First an Int32 is 4 bytes long. You are only looking at two of the bytes and saying it should be the same. Now this isn't your issue, but ...

    Did you really expect the values to add up to 800? Do...
  5. Replies
    2
    Views
    2,765

    To answer your question anyway, no it's not...

    To answer your question anyway, no it's not thread safe. Your ForEach method, if operating on objects, may reference an object that is no longer part of the collection while it is running.

    And I...
  6. Replies
    4
    Views
    3,283

    Yep, use split to get two strings, then use...

    Yep, use split to get two strings, then use Int32.TryParse (it's better than Int32.Parse as it will gracefully handle when users type in garbage rather than numbers).
  7. Never heard of such a tool and it's output would...

    Never heard of such a tool and it's output would be nonsense anyway. How many lines would you draw between two objects where one has a List<T> of the other? The measure of coupling has no relation to...
  8. Replies
    4
    Views
    1,754

    Line Numbers for RichText Control in C# -...

    Line Numbers for RichText Control in C# - CodeProject
  9. Replies
    3
    Views
    1,999

    If Blizzard can't do it (WoW vs WoWGlider), I...

    If Blizzard can't do it (WoW vs WoWGlider), I doubt you'll be able to do so.
  10. Replies
    6
    Views
    2,371

    That is your problem. You are comparing "This"...

    That is your problem. You are comparing "This" with "This ". Never going to be equal.
  11. Replies
    3
    Views
    2,107

    You can use this (http://ndde.codeplex.com/)...

    You can use this project which will allow you to use Dynamic Data Exchange with all the browsers. Then you'd use code like

    using NDde.Client;
    ... rest of your class ...
    DdeClient dde = new...
  12. Replies
    3
    Views
    2,107

    Access Explorer and Internet Explorer in C# to...

    Access Explorer and Internet Explorer in C# to Find Web Pages and Directories « OmegaMan's Musings
  13. In line 5 of your first block of code you create...

    In line 5 of your first block of code you create an instance variable tCodes. Where is the code that assigns an object to this instance variable?
    In line 5 of your second block of code you create an...
  14. This is vague, what, exactly, was the exception...

    This is vague, what, exactly, was the exception you received? What object threw the exception? How did you go about reading the XML? Did you bother to read the post on how to ask questions?
    ...
  15. Replies
    2
    Views
    5,626

    I don't. Is there other code that you aren't...

    I don't. Is there other code that you aren't showing us that you are compiling along with this?
  16. How often do you have to count the vowels in a...

    How often do you have to count the vowels in a block of text?
  17. Just to add some numbers to the topic, I ran some...

    Just to add some numbers to the topic, I ran some speed tests. Using the text from itsme86, and the three methods show (numbered from top to bottom), these were the results:

    Method 1 took 35414...
  18. Replies
    5
    Views
    2,107

    In Line 14 of your first block of code you are...

    In Line 14 of your first block of code you are telling it to only encrypt the first byte. Change that to an 8 since you are sending 8 bytes.
  19. Replies
    3
    Views
    3,948

    Replace your for loop with Parallel.For...

    Replace your for loop with Parallel.For
  20. public static void main() { int count = 0; ...

    public static void main() {
    int count = 0;
    double cost = 0.0;
    int age;

    while (true) {
    Console.Write("Enter swimmers age (-1 to end): ");
    String input =...
  21. Replies
    13
    Views
    8,037

    As long as you have memory for it, you sure can....

    As long as you have memory for it, you sure can. Just remember that the actual read will take a bit as I believe Streams default to 4k buffers (so it will have to do multiple disk reads to get the...
  22. Replies
    7
    Views
    1,501

    I'd just like to point out that while String is s...

    I'd just like to point out that while String is s reference type it is treated differently (than the other reference types) in C#. It's immutable (value types are generally immutable), the '=='...
  23. Replies
    4
    Views
    1,394

    Use a Dictionary...

    Use a Dictionary<Tkey, TValue>. Use the name as the key and whatever class you are creating as the value.

    It is possible to create dynamic names by using the Emit class or the Microsoft.Csharp...
  24. Replies
    8
    Views
    2,276

    You can also use MonoTouch...

    You can also use MonoTouch
  25. Actually, the book is right. If you have two...

    Actually, the book is right. If you have two classes with the same name in different namespaces, you must use the fully qualified name. For example:

    namespace NameSpace1;

    class A {
    }
    ...
Results 1 to 25 of 41
Page 1 of 2 1 2