About 50 results
Open links in new tab
  1. c# - Initialize () vs Constructor () method, proper usage on object ...

    Oct 13, 2014 · A constructor should initialize an object in a way that it's in a usable state. A constructor should only initialize an object, not perform heavy work. A constructor should not directly or indirectly …

  2. How to initialize a struct in accordance with C programming language ...

    } An important thing to remember: at the moment you initialize even one object/variable in the struct, all of its other variables will be initialized to default value. If you don't initialize the values in your struct …

  3. How can I initialize all members of an array to the same value?

    How would you use memset to initialize a int array to some value larger than 255? memset only works if the array is byte sized.

  4. How do I initialize an empty array in C#? - Stack Overflow

    Jan 4, 2012 · Is it possible to create an empty array without specifying the size? For example, I created: String[] a = new String[5]; Can we create the above string array without the size?

  5. What is the difference between "instantiated" and "initialized"?

    Feb 25, 2010 · To initialize means assigning an initial state to the object before it is used. This initialization can be part of the instantiation process, in that case values are explicitly assigned to …

  6. java - Difference between initializing a class and instantiating an ...

    Feb 25, 2013 · I tried searching for this question through the search engine but could find a topic that explained the difference between initializing a class and instantiating an object. Could someone …

  7. c# - How to initialize a list of strings (List<string>) with many ...

    589 How is it possible to initialize (with a C# initializer) a list of strings? I have tried with the example below but it's not working.

  8. What's the Initialize method used for and do I really need one?

    Dec 13, 2011 · I am a bit confused about what the Initialize method is typically used for in a constructor. Why can't I just put everything in the constructor and why does the sample below call the initialize me...

  9. Declare and Initialize String Array in VBA - Stack Overflow

    Oct 14, 2013 · 179 In the specific case of a String array you could initialize the array using the Split Function as it returns a String array rather than a Variant array:

  10. c# - How to initialize a List<T> to a given size (as opposed to ...

    Why are you using a List if you want to initialize it with a fixed value ? I can understand that -for the sake of performance- you want to give it an initial capacity, but isn't one of the advantages of a list over a …