Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
GeneralRe: Crystal reports Pin
Heath Stewart18-Jan-05 7:02
protectorHeath Stewart18-Jan-05 7:02 
GeneralCreating Dyanamic Cursor Files Pin
SriMurali17-Jan-05 21:44
SriMurali17-Jan-05 21:44 
GeneralRe: Creating Dyanamic Cursor Files Pin
Heath Stewart18-Jan-05 7:00
protectorHeath Stewart18-Jan-05 7:00 
GeneralAccess Browser Body Text Pin
egyseiko17-Jan-05 21:35
egyseiko17-Jan-05 21:35 
GeneralRe: Access Browser Body Text Pin
Heath Stewart18-Jan-05 6:54
protectorHeath Stewart18-Jan-05 6:54 
GeneralRe: Access Browser Body Text Pin
egyseiko23-Jan-05 21:55
egyseiko23-Jan-05 21:55 
Generaldeclaring array dimension and type at runtime Pin
Karl 200017-Jan-05 19:21
Karl 200017-Jan-05 19:21 
GeneralRe: declaring array dimension and type at runtime Pin
Heath Stewart18-Jan-05 6:48
protectorHeath Stewart18-Jan-05 6:48 
If you expect the modify the array while enumerating you cannot use IEnumerable. It will throw an exception if the underlying enumerable changes.

Why not just use an ArrayList? It has the same read performance as an array because it uses an array internally. It's only when you add elements past the current capacity that there is overhead since a new array is created (doubling in size) and previous elements are copied.

Dynamic code is often an inconvenience, but there's not much you can do short of wrapping such behavior (which, once again, ArrayList already does for you - just examine the IL for yourself or use a decompiler like .NET Reflector). Ever written native code to access automation (IDispatch implementations) servers? It's a pain compared to automation clients like VB6 and script, but that's the price to pay for late-binding code.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: declaring array dimension and type at runtime Pin
Karl 200018-Jan-05 6:58
Karl 200018-Jan-05 6:58 
GeneralRe: declaring array dimension and type at runtime Pin
Heath Stewart18-Jan-05 8:36
protectorHeath Stewart18-Jan-05 8:36 
GeneralRe: declaring array dimension and type at runtime Pin
Karl 200018-Jan-05 9:11
Karl 200018-Jan-05 9:11 
Generalplace a text box in C# without toolbox Pin
itssuk17-Jan-05 19:14
itssuk17-Jan-05 19:14 
GeneralRe: place a text box in C# without toolbox Pin
mhmoud rawas17-Jan-05 19:24
mhmoud rawas17-Jan-05 19:24 
GeneralRe: place a text box in C# without toolbox Pin
Heath Stewart18-Jan-05 6:30
protectorHeath Stewart18-Jan-05 6:30 
GeneralNeed Code in C# for Pin
aaditya200017-Jan-05 19:12
aaditya200017-Jan-05 19:12 
GeneralRe: Need Code in C# for Pin
Christian Graus17-Jan-05 21:25
protectorChristian Graus17-Jan-05 21:25 
GeneralRe: Need Code in C# for Pin
Gregg Holter18-Jan-05 22:52
Gregg Holter18-Jan-05 22:52 
GeneralProblem in Return DataReader from a ServicedComponent object Pin
kianboo17-Jan-05 18:28
kianboo17-Jan-05 18:28 
QuestionCan asp.net use C++ DLL through C#? Pin
webdevelopex17-Jan-05 18:05
webdevelopex17-Jan-05 18:05 
AnswerRe: Can asp.net use C++ DLL through C#? Pin
Christian Graus17-Jan-05 21:27
protectorChristian Graus17-Jan-05 21:27 
GeneralRe: Can asp.net use C++ DLL through C#? Pin
webdevelopex17-Jan-05 22:43
webdevelopex17-Jan-05 22:43 
GeneralRe: Can asp.net use C++ DLL through C#? Pin
Nick Parker18-Jan-05 3:45
protectorNick Parker18-Jan-05 3:45 
GeneralRe: Can asp.net use C++ DLL through C#? Pin
Heath Stewart18-Jan-05 5:50
protectorHeath Stewart18-Jan-05 5:50 
GeneralGraphics files stumper... Pin
new_phoenix17-Jan-05 16:12
new_phoenix17-Jan-05 16:12 
GeneralRe: Graphics files stumper... Pin
cobyjone17-Jan-05 16:21
cobyjone17-Jan-05 16:21 

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.