I realize C# and .NET in general already has the Hashtable and Dictionary classes.
Can anyone demonstrate in C# an implementation of a Hashtable?
Update: To clarify, I'm not ncessarily looking for a complete implementation, just an example of the core features of a hashtable (i.e. add,remove, find by key).
...
Well my problem is this: I set the AcceptButton on a form and this gives me the nice effect that it triggers the buttons Click event, but if I'm on a MultiLine textbox I don't want this to happen. Then I just want it to put a enter in it.
Is there any way to do this?
...
Is it possible to have variable-height rows within a WinForms ListView in Details mode?
There is no RowHeight or Rows[i].Height property on the control as far as I know.
Some blogs suggests implementing OwnerDraw, which I did, but I still can't find anything resembling height property from within the event handlers.
Ideally, the row ...
I need some help. My supervisor who is not a programmer asked me to prepare a document describing how our company would benefit from switching to .NET 3.5 from .NET 2.0. We're a small company and our IT department consists of only 6 programmers. We write mainly Windows Forms, sometimes ASP.NET and Compact Framework apps. I would like to ...
I want to hold about 30 strings in a static "collection". I then need to check the path of an incoming web request against this list.
I was thinking of using a StringDictionary with the Key and the Value having the the same values. However it just seems odd when all I really want is a key look up, so I can check for existence rather tha...
So I have this annoying issue with Visual Studio (when working with C#), I've been digging around in the C# formatting options, general VS options and on google and MSDN but can't really find a fix for this - I'm assuming there's just a checkbox somewhere and I've just overlooked it. Here it is:
I like to format my code like this:
Type...
Have you used NPanday to integrate Visual Studio with Apache Maven? If so, did it work well? Would you use it again?
Edit: Less specifically, I suppose, the problem I'm trying to solve is this:
I have a C# solution in Subversion that relies on other projects elsewhere in the Subversion tree. I'd like to build my project using Hudson. I ...
i would like a working example, that uses a asp.net session state server, to share a session variable between two .net 2.0 web applications both running on the same domain, just in different folders ( same parent folder)
directory structure:
parent site: [localhost/testSite]
web app 1 site: [localhost/testSite/webapp1]
web app 2 site: ...
Is there a way to search for the existence of a given WCF service in any of the computer of a local Network?
For example, I am looking for the Math/Add2Numbers service and I want to know which machines on the LAN provide it, is there any way to do that?
...
Hello,
I am creating a setup project. The client would like to have the setup.exe file that includes already the .Net framework 3.5 SP1.
However, when I right click setup project | properties
On the "properties page" there is a button called "Prerequistes.."
There you have 3 choices:
Vendors's website
same location as my application
...
Duplicate:
Is LINQ to SQL DOA?
I read somewhere on the 'net that Microsoft is considering moving away from LINQ-To-SQL in its current form as it wasn't very successful.
I want as many opinions on this as possible as I'm new to .NET and want to choose the best possible route for where I work.
...
We are in the processing of configuring a portal to use ISA Server as our front end security provider.
So we are using ISA Server 2006 SP1.
Unfortunately when we access .net applications through ISA Server, the first time they are accessed.
i.e. They are not compiled yet, the following error appears:
Error Code: 500 Internal Server Err...
What interface must i implement to be able to create wpf event when some thing changes?
...
I have a DataTable/collection that is cached in memory, I want to use this as a source to generate results for an auto complete textbox (using AJAX of course).
I am evaluating various options to fetch the data quickly.
The number of items in the collection/rows in the datatable could vary from 10000 to 2,000,000. (So that we dont get di...
Hi, I am currently using the binary formatter (Remoting) to serialize/deserialize objects for sending around my LAN.
I have recently upgraded from 2.0 to .Net 3.5, has 3.5 introduced any new types to improve serialization performance?
I’ve looked at the DataContractSerializer but this serializes anything to underlying xml right … which...
The preamble:
I have designed a strongly interfaced and fully mockable data layer class that expects the business layer to create a TransactionScope when multiple calls should be included in a single transaction.
The problem: I would like to unit test that my business layer makes use of a TransactionScope object when I expect it to.
...
Using
<System.ComponentModel.TypeConverter(GetType(System.ComponentModel.ExpandableObjectConverter))> _
on the declaration of a class (which is a property of another class) that consists of a number properties.
I load an instance of this class with simply ...
PropertyGrid1.SelectedObject = oColumn
Obviously I don't want to manuall...
Is there a simple way to use the existing Html Helpers to generate a list of checkboxes with explicit values (as was possible in Beta)?
Example in Beta (possibly with MVC Contrib):
.CheckBox("Field", 6, new { value = 6}) would output:
<input id="Field1" type="checkbox" value="6" name="Field" />
<input id="Field2" type="hidden" value="...
I've got a method which currently takes an IList as a parameter, where UserBO is similar to the following:
public class UserBO {
public string Username { get; set; }
public string Password { get; set; }
public string Pin { get; set; }
}
public class SomeClass {
// An example method giving the basic idea of what I need t...
I'm revisiting and re-implementing the code that caused me to ask this question about data auditing in NHibernate. However this time, I want go with Sean Carpenter's suggestion and implement the ISaveOrUpdateEventListener (new in NHibernate 2.x)
I want to add a row in a database for each change to each property with the old value and t...