Is there a good tool to generate unit test cases given say a .NET or Java project, it generates unit test cases that would cover an almost 100% code coverage. The number of test cases could be directly proportional to the cyclomatic complexity of the code (the higher the nesting of loops and conditions the higher the cyclomatic complexi...
I'd like to have "80 characters per line" setting for WPF RichTextBox control. Is there any nice way to do this?
...
Has anyone out there actually succeeded in creating a prerequisitie for o2003.msi?
There are a lot of people out there asking about this, but I cannot find anyone who actually succeeded. I find some extremely complicated solutions where you are required to comple .cpp-files for which the soure may or may not be supplied. I even tried to...
When developing a Visual Studio (2005) Debug Visualizer, you have to specify the target type you want to visualize (i.e. a DataSet Visualizer would specify its target at TypeOf(DataSet)). However, what if you want your Visualizer to be able to visualize any object type? Specifying the target to TypeOf(Object) doesn't seem to work.
Edit:...
The MSDN article on the C# command-line compiler /lib switch specifies the following:-
The compiler searches for assembly references that are not fully qualified in the following order:
Current working directory. This is the directory from which the compiler is invoked.
The common language runtime system directory.
Direct...
When you are in the context of the background thread.
Thread.IsBackground == true
There is a way to find the foreground thread calling this background thread ?
Thanks for your help
Update: The thread created are background and handled by a threadpool (Inside the Workflow Foundation Runtime). I have no way to add the reference from t...
I have an application written in C# that needs to be able to configure the network adapters in Windows. I have this basically working through WMI, but there are a couple of things I don't like about that solution: sometimes the settings don't seem to stick, and when the network cable is not plugged in, errors are returned from the WMI ...
I don't quite get what it's going to let me do (or get away with :)
...
I would like to extend a class generated by Linq To Sql to initialize when a new object (=row) is created.
I want to add rows to a child table when a parent row is created.
I was hoping to use the Oncreated (partial) method do something like this:
partial class Product {
partial void OnCreated() {
// Fill default rows for...
Any recommendations for cheap .Net hosting that has flexible medium trust rules allowing the use of reflection?
...
All of a sudden I keep getting a MetadataException on instantiating my generated ObjectContext class. The connectionstring in App.Config looks correct - hasn't changed since last it worked - and I've tried regenerating a new model (edmx-file) from the underlying database with no change.
Anyone have any... ideas?
Edit: I haven't changed...
Yes ....
Technically ... what is involved in ILMerging the DLR and Iron Ruby into a single DLL? What should I be careful about?
Legally (MS-PL) ... am I allowed to ship an open source dll that had iron ruby and the DLR embedded into it? (Looks like the answer to this question is, usually yes, what OSI licenses is ms-pl compatible wit...
Is there Cache preferably a distributed cache with Linq query support?
...
I know about DIA api, dbghelp. But can i use them to extract type definition location info such as file, begin_line, begin_column, end_line, end_column from my assembly and pdb generated?
If the answer is yes, can someone point me to the simple example out there?
...
Well the title says it all really.
I know that you cannot specify a constructor in an interface in .Net, but why can we not?
It would be really useful for my current project to be able to specify that an 'engine' must be passed in with the constructor, but as I cant, I have to suffice with an XML comment on the class.
...
I seem to see a number of people who seem to overcomplicate things both on here and even when I'm coding. I'm wondering if people have a facination with the latest features and attempt to incorporate these into their coding to help them learn more or use the 'funky' latest features at the expense of performance or complexity.
I think a ...
I am using Visual Studio 2008 SP1 in XP
The hang up occurs when i try to edit a controltemplate that is defined in a resource.
(all my resource files are merged through application.xaml)
Googling this issue i found out that it is a known bug to microsoft, but i cant seem to find a hotfix or a good enough solution in order to do my wor...
I'm following the tutorial's that come with the SDK for Microsoft Virtual Earth, and when I try to create a plugin like it says, the compiler won't let me.
I'm extending the class Microsoft.MapPoint.PlugIn.PlugIn and it has two abstract methods (that the tutorial doesn't talk about) which I have implemented. However, when I compile it, ...
According to an answer for Why are we not allowed to specify a constructor in an interface?,
Because an interface describes behaviour. Constructors aren't behaviour. How an object is built is an implementation detail.
If interface describes behavior, why does interface allow declaring state?
public interface IStateBag
{
object...
Here's the problem....I have three components...A Page that contains a User Control and a Server-side control which is in the user control. The user control has a handful of events that the page listens to which change what the server-side control does.
The server control essentially creates a TV-Guide looking list filled with many many...