Is it possible to sort a list using two values in an object with iComparer?
I've got a custom comparer class that sorts based on value1. But what's the best way to get a sort on value1 and value2?
Would sorting the list by value2 then value1 work?
...
Hi,
what are the differences in terms of features in .Net frameworks 1.1,2.0,3.0 and 3.5?
...
A new application that has been developed has a heavy use of web services. We started hitting out of memory exceptions on a regular basis (as usage has increased). Upon reviewing the memory dumps I noticed there were a large number of same sized byte[]. Looking at the handles for these byte[] I noticed that they were referenced by System...
I am writing a .NET webservice (VB.NET). One of the methods DisplayChild() returns an object of type Child. Child is defined:
<Serializable()> _
Public Class Child
Inherits BaseClass
Property NotInInheritedProperties() as Object
...
End Property
End Class
and the BaseClass looks something like:
<Serializable()> _
Publ...
I've enabled Enable Edit and Continue on the Web Properties page and it's also enabled in my configuration, yet Visual Web Developer 2008 Express Edition refuses to allow me to edit source files of an ASP.NET MVC project. I can edit the aspx file with no problem though.
Any ideas what's wrong or what's missing?
...
In Visual Studio's Project Properties -> Signing tab, I have signed my project with a code-signing certificate. On my team, however, I'm the only one with the code-signing certificate, even though we're in a multiple-developer environment. When the other developers try to "Start Debugging", they get the following message:
"cannot find t...
I have a dataset with multiple tables. One table in particular has one record in it. I am adding another record to this datatable and am using the Dataset.Copy() method to copy the entire dataset object to another instance.
Dataset2 = DirectCast(Dataset1.Copy(), dsApplication)
However, the new copy of the dataset returned from th...
In the application I am writing, I need to write lots of base types, which will most likely be immutable. But I am wondering how mutable types compare in parallel applications to immutable ones.
You can use locks with mutable objects, right? How does it compare to other techniques used with immutable types in parallel applications?
You...
I am trying to connect to a database on a server from a developer machine. The server has the named pipes protocol disabled. For some reason from one developer's box we get the following error message. Two other developer boxes can connect using the same code just fine (using tcp/ip). I have tried disabling The named pipes protocol o...
Hi I want to write a FindByExample(object o) method. So I tried this:
public IList<T> FindByExample(T o)
{
return Session.CreateCriteria(typeof(T)).Add(Example.Create(o)).List<T>();
}
(It's in a generic class)
It should work fine, but if T has a property of an enum type, it throws this exception:
"Type mismatch in NHibernate.Cri...
hi,
I have an object in C# with lets say 20 properties and its a part of a datacontract. I also have another business entity with similar properties, which i want to populate from the response object. is there any way to do it other than assigning each properties of one object to corresponding properties of the other.
thanks
...
I'm looking for an off-the-shelf license system for desktop software.
After some research on the net -- and of course here on StackOverflow -- I haven't found one the suits our needs. I have a couple of must-have features and some would-be-nice features:
Must have:
Encrypted unlock key
Possibility to automate the unlock
key generat...
I have the following code
<table cellpadding="2" cellspacing="2">
<tr>
<td>Factory:</td>
<td>
<asp:TextBox ID="txtFactory" runat="server" Width="100%"></asp:TextBox>
</td>
</tr>
</table>
My problem is that sometimes the factory textbox can hold a fairly long description of 100 or more characters, and when this ha...
I'm trying to programatically determine the cluster size of a storage card, using C# / .NET Compact Framework, on Widows Mobile.
For desktop Windows there's the GetDiskFreeSpace() function, but it doesn't exist in coredll.dll/Windows Mobile.
Is there any other way I could find out the size of the cluster for a storage card?
...
Is it better to use System.Assembly.Load or to load the assembly directly into the AppDomain using System.AppDomain.CurrentDomain.CreateInstanceFromAndUnwrap? I am specifically interested in calling different versions of the same assembly running in the same process. I think with CreateInstanceFromAndUnwrap your assembly must have the [s...
Can anyone provide some links to good information on setting up Silverlight 2.0 to authenticate to a WCF Service through ASP.NET Forms Authentication?
...
I am new to the C# XmlSerializer so I might be missing something basic here.
The problem I am running into is that I have one class that has a List<T> of another class. When I serialize the main class the XML looks beautiful and all the data is intact. When I deserialize the XML, the data in the List<T> disappears and I am left with a...
I have a WPF application with connections strings stored in the App.config. What is the best way of encrypting these connection strings in a click-once deployment?
Thanks
...
Possible Duplicates:
BOO Vs IronPython
Boo vs. IronPython
Say you want to embed a scripting language into a .NET application.
Boo is modelled on Python syntax, but also includes type inference, and just in general seems to be a better, more modern language to embed as a scripting language.
Why, then, is there so much fuss ab...
Hello,
Q1
Book suggests that before we register new SqlProfileProvider, we should remove any existing profile providers using <clear> element. But:
A) why must we use <clear> instead of <remove>?
B) I assume that root web.config or machine.config don’t register (by default) any profile provider, and thus using <clear> element is no...