Click here to Skip to main content
15,906,335 members
Home / Discussions / C#
   

C#

 
Questiongenerate code dynamically ? Pin
Mubeen.asim15-Mar-09 9:53
Mubeen.asim15-Mar-09 9:53 
AnswerRe: generate code dynamically ? Pin
Pete O'Hanlon15-Mar-09 10:03
mvePete O'Hanlon15-Mar-09 10:03 
Questioncharacter recognition Pin
Swati Khanna15-Mar-09 7:15
Swati Khanna15-Mar-09 7:15 
AnswerRe: character recognition Pin
Xmen Real 15-Mar-09 7:48
professional Xmen Real 15-Mar-09 7:48 
AnswerRe: character recognition Pin
Christian Graus15-Mar-09 10:11
protectorChristian Graus15-Mar-09 10:11 
QuestionI thought I couldn't shadow... Pin
likefood15-Mar-09 6:39
likefood15-Mar-09 6:39 
AnswerRe: I thought I couldn't shadow... Pin
Steve_15-Mar-09 7:36
Steve_15-Mar-09 7:36 
GeneralRe: I thought I couldn't shadow... Pin
likefood15-Mar-09 7:52
likefood15-Mar-09 7:52 
GeneralRe: I thought I couldn't shadow... Pin
Steve_15-Mar-09 11:00
Steve_15-Mar-09 11:00 
AnswerRe: I thought I couldn't shadow... Pin
N a v a n e e t h15-Mar-09 7:53
N a v a n e e t h15-Mar-09 7:53 
AnswerRe: I thought I couldn't shadow... Pin
likefood15-Mar-09 8:04
likefood15-Mar-09 8:04 
GeneralRe: I thought I couldn't shadow... Pin
N a v a n e e t h15-Mar-09 8:22
N a v a n e e t h15-Mar-09 8:22 
GeneralRe: I thought I couldn't shadow... Pin
harold aptroot15-Mar-09 9:45
harold aptroot15-Mar-09 9:45 
QuestionVerify connection to mail server.... Pin
Jacob Dixon15-Mar-09 4:29
Jacob Dixon15-Mar-09 4:29 
AnswerRe: Verify connection to mail server.... Pin
harold aptroot15-Mar-09 5:27
harold aptroot15-Mar-09 5:27 
GeneralRe: Verify connection to mail server.... Pin
Jacob Dixon15-Mar-09 6:22
Jacob Dixon15-Mar-09 6:22 
QuestionResize an Array dynamically Pin
rushi_gavankar15-Mar-09 3:12
rushi_gavankar15-Mar-09 3:12 
AnswerRe: Resize an Array dynamically Pin
Luc Pattyn15-Mar-09 5:08
sitebuilderLuc Pattyn15-Mar-09 5:08 
AnswerRe: Resize an Array dynamically Pin
Alan N15-Mar-09 5:22
Alan N15-Mar-09 5:22 
Hi,
You've gone to the trouble of writing some code so surely you can pose a better question than "It's not working".

What is it doing and what is it not doing?

Out of interest I tried the following test and it worked!

Alan.

class Program {
  struct myStruct {
    internal Int32 i, j;
  }
  static void Main(string[] args) {

    myStruct[] first = new myStruct[5];
    // initialise with some values to make debugging easier
    for (int c = 0; c < first.Length; c++) {
      first[c].i = c;
      first[c].j = c;
    }

    Type t = first.GetType();
    Type t2 = t.GetElementType();

    myStruct[] second = (myStruct[])Array.CreateInstance(t2, 10);
    first.CopyTo(second, first.Length);

    // continue the value sequence used in 'first'
    for (int c = first.Length; c < second.Length; c++) {
      second[c].i = c;
      second[c].j = c;
    }
    Console.ReadLine();
  }
}

GeneralRe: Resize an Array dynamically Pin
Luc Pattyn15-Mar-09 7:37
sitebuilderLuc Pattyn15-Mar-09 7:37 
AnswerRe: Resize an Array dynamically Pin
Eslam Afifi15-Mar-09 6:07
Eslam Afifi15-Mar-09 6:07 
GeneralRe: Resize an Array dynamically Pin
Natza Mitzi15-Mar-09 12:24
Natza Mitzi15-Mar-09 12:24 
GeneralRe: Resize an Array dynamically Pin
Megidolaon16-Mar-09 1:53
Megidolaon16-Mar-09 1:53 
AnswerRe: Resize an Array dynamically Pin
Eslam Afifi16-Mar-09 7:25
Eslam Afifi16-Mar-09 7:25 
Questionconvertor Pin
shefa' isied15-Mar-09 2:53
shefa' isied15-Mar-09 2:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.