Possible Duplicate:
Should I choose to learn Java or .NET?
Is there an advantage to learning Java or .NET first?
(ie. would the transition from J2EE to .NET be significantly easier than the reverse?)
Do you think that one platform has overtaken the other in terms of industry use?
(feel free to be as biased or as objective a...
Given registered services:
builder.RegisterType<Foo1>().Named<IFoo>("one").As<IFoo>();
builder.RegisterType<Foo2>().Named<IFoo>("two").As<IFoo>();
builder.RegisterType<Foo3>().Named<IFoo>("three").As<IFoo>();
Can I retrieve named implementations of IFoo interface by injecting something like Func<string, IFoo> ?
public class SomeClass...
Hi,
I have an entity model, in which I have a table per type inheritance. There are 3 types, first, Contact, which I defined as abstract in my EF model and the rest are Company and person types which are derived from contact type. I was trying to insert a person record via the ado.net dataservices and ended up getting the following er...
Hi All,
I'm a bit confused by a few tutorials that I read about the ListView.
I have a ListView control and on the left hand side should be a name, and to the right of that name should be like another column with some more text in it. For example:
ListView:
jason blah blah blah
item2 more blahs
item3 jupiter
item4 ...
In a German programming forum we currently have a discussion about events and what you (grammatically) do with them.
The MSDN talks about "Event Raising" and "to raise an event". Thus, this seems to be one possibility.
Are there any other synonyms? What about "to trigger an event" and "to fire an event"?
A Google search will bring re...
I have a list of strings which are candidates for Enumerations values. They are
Don't send diffs
500 lines
1000 lines
5000 lines
Send entire diff
The problem is that spaces, special characters are not a part of identifiers and even cannot start with a number, so I would be sanitizing these values to only chars, numbers and _
To keep...
I am teaching myself PowerShell by writing a simple parser. I use the .Net framework class Collections.Stack. I want to modify the object at the top of the stack in place.
I know I can pop() the object off, modify it, and then push() it back on, but that strikes me as inelegant.
First, I tried this:
$stk = new-object Collections.Sta...
Hey guys,
I've got a class in my project that stores a List<> of elements. I'm trying to figure out whether I should allow the user to add to that List directly (e.g. Calling the native add/remove methods) or lock it down by declaring the List private and only allowing a handful of methods I choose to actually alter the List.
It's a fr...
I have a listbox which reads from Observable collection, and is ItemTemplate'ed:
<DataTemplate x:Key="DataTemplate1">
<Grid x:Name="grid" Height="47.333" Width="577" Opacity="0.495">
<Image HorizontalAlignment="Left" Margin="10.668,8,0,8" Width="34" Source="{Binding ImageLocation}"/>
<TextBlock Margin="56,8,172.334,8...
Hi,
I know this can look like duplicate of other discussions and I have already reviewed them, but they are different.
I want to learn Java and I want to know are there any books similar to those that I have seen for C#.
Here is the list:
C# 4.0 in a Nutshell: The Definitive Reference
Probably Java in a Nutshell :)
Professional C# 4...
Hi,
We're in the process of upgrading from VS2008 to VS2010 since it's now released. We are using CC.NET along with MSTest and want to use MS coverage tool instead of NCover. Interestingly, as I've seen others talking about as well, when you upgrade your project from VS2008 to VS2010 your Test Projects get converted to .NET 4. Nice move...
Hi All
I need something like a Dictionary or a SortedList but i keep getting exceptions thrown when it receives two things that are the same... Is there another way around this?
Thanks
...
I have a web project consisting of only web services. I need a global way of handling errors on the server so I can send emails, log in event log, etc. Global.asax doesn't work according to MSDN. How should I go about this? I have tried creating a soapExtension, but it is never hit.
...
Possible Duplicate:
What is the best .NET obfuscator on the market?
I have tried .NET Reactor but it seems to break our complex application even with the most simple option (just rename method name). Also, it does not provide any option to filter method names by Regex like DotFuscator. DotFuscator is very good but it is too ex...
How to put a cut/copy reference to specific files and/or folders into Windows clipboard so that when I open standard Windows Explorer window, go to somewhere and press Ctrl+V - the files are pasted?
If I copy or cut some files/folders in Windows Explorer, how do I get this info (full names and whether they were cut or copied) in my Prog...
I looked at the MySql Connection Options and it doesnt seem to be there. Is there a way to create a read only connection/command for .NET? With SQLite i could specify read only=true to do this. What can i do with MySQL?
...
When I set a breakpoint on one of the methods that appears on top of the stack (!CLRStack), I get lots of these messages for every DLL that the debuggee is referencing including the .NET Framework ones.
ERROR: Module load completed but symbols could not be loaded
Further digging into this shows that windbg is not loading every .pdb fil...
I heard that .NET 4 has a new caching API.
Okay, so the good old System.Web.Caching.Cache (which is, by the way, still there in .NET 4) has the ability to set so-called CacheDependency objects to determine whether a cached item is expired or not.
One can also specify custom logic for determining whether a cached item is still useable o...
int val = lstvRecordsCus.SelectedItems[0].SubItems[0];
The returned value is an int in a string datatype. I need the right hand side to return the value in int instead of string.
I tried Convert.ToInt32, it didn't work. Any idea?
All the values that comes from SelectedItems[0].SubItems[0] is of type int.
...
Hello,
I'm stumbling in the data wilderness and feel very lost, so i am asking for help.
I have done some database apps in VS (C#) winforms for some time, wpf lately. These are small to medium apps (embedded dbs, a bit of sql server), like a restaurants, cash registers and similar. (15-20 tables)
Until now, i have done all my datasets b...