Click here to Skip to main content
15,920,708 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to hide a form if the user close it? Pin
LongRange.Shooter1-Jun-04 6:37
LongRange.Shooter1-Jun-04 6:37 
AnswerRe: How to hide a form if the user close it? Pin
Heath Stewart1-Jun-04 6:45
protectorHeath Stewart1-Jun-04 6:45 
GeneralShorten the String Pin
Adam °Wimsatt1-Jun-04 5:22
Adam °Wimsatt1-Jun-04 5:22 
GeneralRe: Shorten the String Pin
LongRange.Shooter1-Jun-04 8:13
LongRange.Shooter1-Jun-04 8:13 
QuestionHow do compile a dll and load it to the assembly in runtime? Pin
Louis Riel1-Jun-04 5:12
Louis Riel1-Jun-04 5:12 
AnswerRe: How do compile a dll and load it to the assembly in runtime? Pin
Heath Stewart1-Jun-04 6:36
protectorHeath Stewart1-Jun-04 6:36 
GeneralRe: How do compile a dll and load it to the assembly in runtime? Pin
Louis Riel1-Jun-04 9:12
Louis Riel1-Jun-04 9:12 
GeneralRe: How do compile a dll and load it to the assembly in runtime? Pin
Heath Stewart1-Jun-04 9:18
protectorHeath Stewart1-Jun-04 9:18 
Instead of using Parse, use the TypeConverter. Often, the TypeConverter for a particular Type will use a Parse method if it exists, but using a TypeConverter (which you can get using TypeDescriptor.GetConverter) is abstract.

Also, what I mentioned before is that the classes in the .NET FCL already do the discovery for you, providing method names along with their parameters. Than all you have to do is use Invoke. Generate a source file for an XML Web Service in VS.NET, for example. Then show hidden files in your project and look at the source code. You'll see this is all the source code contains.

Compiling and loading assembly has further overhead because not only is it unnecessary, but you can't unload an assembly from your AppDomain. So, if someone uses your application for a while with many different web services, the machine will be at a loss for memory and - even with proper disposing and garbage collection (though you should rarely force it) - your application will grind the system to a halt (or slow enough that users may think the machine has froze).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: How do compile a dll and load it to the assembly in runtime? Pin
Louis Riel1-Jun-04 9:49
Louis Riel1-Jun-04 9:49 
GeneralRe: The Error Pin
Peter Vertes1-Jun-04 4:15
Peter Vertes1-Jun-04 4:15 
QuestionHow do I get a full list of assemblies and their versions of the GAC?? Pin
IrishSonic1-Jun-04 3:16
IrishSonic1-Jun-04 3:16 
AnswerRe: How do I get a full list of assemblies and their versions of the GAC?? Pin
Dave Kreskowiak1-Jun-04 4:42
mveDave Kreskowiak1-Jun-04 4:42 
Generaltooltip problem Pin
gulucay1-Jun-04 3:13
gulucay1-Jun-04 3:13 
QuestionPlease advice best TreeList controls for .NET ? Pin
vgrigor1-Jun-04 3:09
vgrigor1-Jun-04 3:09 
AnswerRe: Please advice best TreeList controls for .NET ? Pin
Heath Stewart1-Jun-04 6:27
protectorHeath Stewart1-Jun-04 6:27 
GeneralRe: Please advice best TreeList controls for .NET ? Pin
vgrigor1-Jun-04 22:01
vgrigor1-Jun-04 22:01 
GeneralRe: Please advice best TreeList controls for .NET ? Pin
Heath Stewart2-Jun-04 2:43
protectorHeath Stewart2-Jun-04 2:43 
GeneralRe: Please advice best TreeList controls for .NET ? Pin
vgrigor3-Jun-04 4:54
vgrigor3-Jun-04 4:54 
Generalproblems binding my combobox Pin
robmays1-Jun-04 1:16
robmays1-Jun-04 1:16 
GeneralRe: problems binding my combobox Pin
Heath Stewart1-Jun-04 6:24
protectorHeath Stewart1-Jun-04 6:24 
GeneralRe: problems binding my combobox Pin
robmays1-Jun-04 20:25
robmays1-Jun-04 20:25 
GeneralRe: problems binding my combobox Pin
Heath Stewart2-Jun-04 2:41
protectorHeath Stewart2-Jun-04 2:41 
QuestionHow to export dataset to excel Pin
wangjim1-Jun-04 0:42
wangjim1-Jun-04 0:42 
AnswerRe: How to export dataset to excel Pin
Dave Kreskowiak1-Jun-04 6:04
mveDave Kreskowiak1-Jun-04 6:04 
GeneralRe: How to export dataset to excel Pin
wangjim1-Jun-04 7:12
wangjim1-Jun-04 7:12 

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.