I've got an application with 2 main components + other DLLs:
Core DLL (got all core functionality)
GUI
3rd Party and Totally Independent DLLs which requires for DI etc.
Now I'm implementing plugin support.
Which DLL should be responsible from loading these plugins? GUI or the Core DLL?
I'm using MEF so not quite sure where to sti...
If I have a string "Param1=value1;Param2=value2;Param3=val3", how can I get the value between the substrings "Param2=" and the next semicolon (or end of string, whichever comes first)?"
...
I am receiving this error and I'm not sure what it means?
Object reference not set to an instance of an object.
...
What are some clever uses for LINQ outside of LINQ to SQL?
Have you found any problems that LINQ made a whole lot easier to solve? Please post examples.
...
Access added a new data type in the 2007 version--the Attachment type. We are currently working on a WinForms application with .NET 3.5 (C#) that uses an Access 2007 database. We want to be able to add new attachments through the WinForms interface. I can't seem to locate any information on how to insert or select attachment data with .N...
Let's say just for the joy of it, I decide that I don't want to write desktop applications in Java any more, instead want to switch to using C#. I want to be able to build an application that will run on some mainstream Linux distribution, and a recent release of MS Windows. It will have a GUI component.
In Java I can build an applic...
I have the following msbuild script that copies the entire DeploymentDirectory to the VersionSpecificDirectory. Here is the snippet:
<CreateItem Include="$(DeploymentDirectory)/**/*.*" >
<Output ItemName="AllDeploymentFilesToCopy" TaskParameter="Include" />
</CreateItem>
<Copy SourceFiles="@(AllDeploymentFilesToCopy)"
Destinati...
Developing a C# .NET 2.0 WinForm Application. Need the application to close and restart itself.
Application.Restart();
The above method has proven to be unreliable.
What is a better way to restart the application?
...
I'm using the System.Windows.Forms.WebBrowser control in a .NET 2.0 application, and would like to insert a bit of JavaScript code into the loaded document right before the end of the body element.
How might I go about accomplishing this?
...
Hi,
I am interested in finding out more about the use of Pex, the testing framework for .NET.
I am aware that the current version of Pex is only 0.11, but is anyone aware of an open source project that currently makes use of it?
Thanks, MagicAndi.
Update - Results So Far
QuickGraph
Functional-dotnet
...
So for complex types, we can write:
return new MyType ( 5 );
but why can't we do stuff like (to have symmetry for one):
return new int ( 5 );
return new Int64 ( 5 );
I know only parameterless constructors are provided. What's the reason for this?
...
I am implimenting a custom solution to interface with a Magento website. My code is in C#. I am trying to create products using either the v2_soap api and the xml-rpc api web services. I have attempted to create a product using both services. I cannot seem to successfully create a product. With each service I receive the error message “ ...
I was recently in an Interview and the tech guy asked me about how to make teh app thread safe.
Well, after explaining the lock() correctly, he said it is not a good idea to have the object as static.
private static readonly object _syncLock = new object();
He claimed the reason is that static makes that object slower for threads to ...
I am building a new website and it will contain a lot of image manipulations and i found imagemagick which seams very good, but the problem as a .Net developer i can't integrate it in my website.
Is it possible to use in .Net application/websites?
How to add to reference and which file to add?
Any good examples?
...
I want to use the Windows Eventing 6 API from a C# application to log messages to a specific channel in Windows Server 2008 event log. There is a good example on how to use it but it's only C++. In the example it's mentioned that .NET doesn't support Windows Eventing 6. There are 2 examples in http://msdn.microsoft.com/en-us/magazine/cc1...
I have a web service that retrieves reviews from my database and if not enough reviews are returned, it goes to a secondary source and gets them there and caches them in my database. I have recently noticed that it has been creating duplicates in my database despite me having primary keys to prevent it. I was thinking that maybe when I m...
I recently started playing with C#, but I am finding it very frustrating. It seems every time I want to add what I think is a simple control, I end up either scouring the internet or writing my own. I just feel like I spend more time recreating controls to get them to work the way they should, and less time actually creating applicatio...
Hi, I'm new to world of .NET programming and I want to know about websites that have articles, tips and other useful information about .NET and Microsoft technologies. The websites I currently visit are:
MSDN
StackOverflow
WindowsClient.NET
TheServerSide.NET
I'd love to learn about some new .NET websites!
Thanks,
Ek
...
Basically I would like to know the difference between
Int32^ i = gcnew Int32();
and
Int32* i2 = new Int32();
I have written the following code:
#include <stdio.h>
#using <mscorlib.dll>
using namespace System;
int main(void) {
Int32^ i = gcnew Int32();
Int32* i2 = new Int32();
printf("%p %d\n", i2, *i2);
pr...
What's the optimal buffer size to use with a stream from HttpWebResponse.GetResponseStream()?
Online examples vary from 256b to as much as 5Kb. What gives? I guess buffer sizes might be situational. If so what are the situations to use what type of buffer size?
Thanks.
...